.search-bar {
  display: flex;
  justify-content: center;
  padding: 8px 12px;
}


.search-bar input {
  width: 200px;
  max-width: 90%;
  padding: 8px 12px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  outline: none;
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}


.search-bar input:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}


.search-bar input::placeholder {
  color: #999;
  font-size: 13px;
}


@media (max-width: 480px) {
  .search-bar input {
    width: 180px;
  }
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f8f9fa;
  color: #333333;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  scroll-behavior: smooth;
}


.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  background: rgba(248, 249, 250, 0.9);
  border-bottom: 1px solid rgba(224, 224, 224, 0.5);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  color: #007bff;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: #333333;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: #007bff;
  background: rgba(0, 123, 255, 0.1);
}

.nav-links a.active {
  color: #007bff;
  background: rgba(231, 243, 255, 0.8);
}

.nav-search input#searchBox {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(224, 224, 224, 0.8);
  background: rgba(255, 255, 255, 0.9);
  color: #333333;
  outline: none;
  width: 240px;
}


.hero-gradient {
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.hero-inner {
  max-width: 900px;
}

.hero-inner h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  color: #007bff;
  margin-bottom: 16px;
}

.hero-inner .tagline {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #555555;
}

.hero-inner .desc {
  font-size: 18px;
  color: #666666;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.hero-btn {
  padding: 14px 32px;
  font-size: 18px;
}


.section-title {
  font-family: 'Orbitron', sans-serif;
  color: #007bff;
  font-size: 32px;
  text-align: center;
  margin: 40px 0 20px;
}


.card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 32px 48px;
}


@media (max-width: 1024px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 520px) {
  .card-container {
    grid-template-columns: 1fr;
  }
}

.card {
  aspect-ratio: 3 / 4;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;

  display: flex;
  flex-direction: column;

  gap: 12px;
  overflow: hidden;
}



.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
}

.card h3 {
  font-size: 20px;
  color: #333333;
  margin: 0;
}

.card p.muted {
  color: #777777;
  font-size: 14px;
  margin: 0;
}

.card .btn {
  margin-top: auto;
  width: 100%;
  padding: 12px 0;
  font-size: 15px;
  text-align: center;
  border-radius: 999px;
}


.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: #007bff;
}


footer {
  text-align: center;
  padding: 24px 16px;
  background: rgba(248, 249, 250, 0.9);
  margin-top: 40px;
  font-size: 16px;
  color: #666666;
  border-top: 1px solid rgba(224, 224, 224, 0.5);
  backdrop-filter: blur(3px);
}


@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-search input#searchBox {
    width: 160px;
  }
}

@media (max-width: 520px) {
  .hero-inner h1 {
    font-size: 36px;
  }

  .card img {
    height: 160px;
  }

  .nav-search input#searchBox {
    display: none;
  }
}


a:focus,
.btn:focus {
  outline: 2px solid #007bff;
  outline-offset: 3px;
}

.nav-links a {
  position: relative;
  cursor: pointer;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 50%;
  background: #007bff;
  transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}


.page {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.page.active {
  display: block;
  animation: pageFade 0.4s ease forwards;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


body.home-active footer {
  display: none;
}

footer {
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  position: relative;

}

.card .btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  margin-top: 0;
  width: calc(100% - 40px);
}




#mobileBlock {
  position: fixed;
  inset: 0;
  background: #0f172a;
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  text-align: center;
}

#mobileBlock .block-box {
  padding: 32px;
  border-radius: 16px;
  background: #020617;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

#mobileBlock h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

#mobileBlock p {
  font-size: 16px;
  opacity: 0.8;
}


@media (max-width: 900px) {
  body>*:not(#mobileBlock) {
    display: none !important;
  }

  #mobileBlock {
    display: flex;
  }
}