html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f7f7f7;
}

a {
  text-decoration: none;
}

.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #4f6f52;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}

.nav-link {
  justify-content: center;
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

.nav-link li {
  margin: 0 15px;
}

.nav-link a {
  white-space: nowrap;
  flex: 2;
  justify-content: center;
  font-size: 20px;
  color: white;
  padding: 8px 10px;
  display: flex;
  position: relative;
  z-index: 10;
  transition: color 0.3s ease;
}

.nav-link a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background-color: transparent;
  backdrop-filter: blur(0px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease,
    background-color 0.3s ease;
}

.nav-link a:hover::before {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  opacity: 1;
}

.logo {
  flex: 1;
  font-size: 24px;
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-wrapper {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  list-style: none;
}

#language-select {
  display: flex;
  justify-content: end;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: 0.3s;
}

#language-select:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#language-select option {
  color: black;
}

.main-wrapper {
  padding-top: 0px;
}

.main-page {
  background-image: url("../assets/images/Registon.jpg");
  background-size: cover;
  background-position: center;
  height: 91vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.main-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.5;
  z-index: 5;
}

.content-wrapper {
  text-align: center;
  color: white;
  z-index: 10;
  position: relative;
  max-width: 600px;
  padding: 20px;
}

.main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.main-text {
  font-size: 18px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.explore-button button {
  background-color: #599b04;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.3s;
}

.explore-button button:hover {
  background-color: #115803;
  transform: scale(1.05);
}

.places {
  padding: 75px 20px;
  background-color: #ffffff;
  text-align: center;
}

.section-title {
  font-size: 32px;
  color: #333;
  margin-bottom: 30px;
  font-weight: 700;
}

.place-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 10px;
}

.card-description {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-button {
  display: block;
  width: fit-content;
  margin: 10px auto 20px;
  padding: 10px 20px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 8px;
}

.card-button:hover {
  background: #1d4ed8;
}

.view-all-link {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 25px;
  background-color: #5e715e;
  color: white;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.3s;
}

.about-top {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
  font-family: "Georgia", serif;
}

.about-text p {
  line-height: 1.6;
  color: #666;
  margin-bottom: 15px;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

.gallery-item h3 {
  margin-top: 15px;
  font-size: 18px;
  color: #444;
}
.footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 60px 20px 20px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}

.footer-column h3 {
  font-size: 24px;
  font-family: Georgia, "Times New Roman", Times, serif;
  margin-bottom: 20px;
  font-weight: normal;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #999;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.footer-column ul li a:hover {
  color: #fff;
}

.contacts .phone {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.contacts .email {
  font-size: 16px;
  margin-top: 15px;
  margin-bottom: 5px;
}

.contacts .sub-text {
  color: #777;
  font-size: 13px;
  margin-bottom: 10px;
}

.address {
  margin-top: 20px;
  font-size: 14px;
  color: #ccc;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.safe-tourism {
  margin-top: 25px;
  font-size: 14px;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  color: #fff;
  background: #333;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s;
}

.social-icons a:hover {
  background: #555;
}

.orange-button {
  background-color: #ffb400;
  width: 60px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  color: #000;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  border-top: 1px solid #333;
  padding-top: 20px;
  color: #666;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

@media (max-width: 992px) {
  .nav-bar {
    padding: 10px 15px;
  }

  .main-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 40px 15px;
  }

  .about-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .about-image {
    width: 100%;
    order: 1;
  }

  .about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .about-text {
    width: 100%;
    order: 2;
  }

  .about-text h2 {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .about-text p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #555;
  }

  .nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    position: relative;
  }

  .logo a {
    display: flex !important;
    align-items: center;
    white-space: nowrap !important;
    font-size: 18px !important;
    gap: 8px;
  }

  .logo {
    flex: 0 0 auto !important;
    max-width: 70%;
  }

  .logo i {
    font-size: 20px;
  }
  .menu-toggle {
    display: flex;
    order: 3;
  }

  .nav-link {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #4f6f52;
    padding: 20px 0;
    z-index: 999;
  }

  .nav-link.active {
    display: flex;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .address {
    justify-content: center;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1001;
}
