/* Use Sora font */
body {
  margin: 0;
  font-family: 'Sora', sans-serif;
  background: #121212;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Header */
header {
  background: #1e1e1e;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 170, 255, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  animation: slideDown 0.7s ease forwards;
}

header .logo {
  font-weight: 700;
  font-size: 26px;
  color: #00aaff;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
}

nav button {
  background: #00aaff;
  border: none;
  padding: 10px 22px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  margin-left: 20px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 170, 255, 0.3);
}
nav button:hover {
  background: #008fcc;
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 143, 204, 0.5);
}

/* Main content */
main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 25px;
  text-align: center;
  animation: fadeIn 1s ease forwards;
}

h1 {
  font-size: 56px;
  margin-bottom: 14px;
  color: #00aaff;
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px #00aaff66;
}

p.tagline {
  font-size: 22px;
  margin-bottom: 40px;
  max-width: 620px;
  color: #a0cfffcc;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* Download Button */
.btn-download {
  background: linear-gradient(135deg, #00aaff, #005f99);
  color: white;
  padding: 18px 52px;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.4s ease, box-shadow 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 6px 18px rgba(0, 170, 255, 0.45);
  user-select: none;
}
.btn-download:hover {
  background: linear-gradient(135deg, #008fcc, #004766);
  box-shadow: 0 8px 24px rgba(0, 143, 204, 0.7);
  transform: scale(1.08);
}
.btn-download.disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Features */
section.features {
  margin-top: 70px;
  max-width: 980px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 50px;
  animation: fadeInUp 1s ease forwards;
}

.feature {
  width: 280px;
  background: #1f1f1f;
  padding: 28px 22px;
  border-radius: 14px;
  box-shadow: 0 0 18px #00aaff44;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px #00aaffaa;
}
.feature h3 {
  color: #00aaff;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.03em;
}
.feature p {
  color: #c2d9f7cc;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* Versions/Downloads Page */
.versions-main {
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1s ease forwards;
}

/* Custom dropdown */
.custom-dropdown {
  position: relative;
  width: 260px;
  user-select: none;
  margin-bottom: 40px;
}

.dropdown-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 19px;
  font-family: 'Sora', sans-serif;
  background: #222;
  color: #eee;
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 170, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-btn:hover {
  background: #1a1a1a;
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #222;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 8px 20px rgba(0, 170, 255, 0.35);
  max-height: 180px;
  overflow-y: hidden;
  z-index: 10;
  display: none;
  padding: 0;
  list-style: none;
}

.dropdown-list.show {
  display: block;
  overflow-y: auto; /* only show scroll when needed */
}

.dropdown-list li {
  padding: 14px 20px;
  cursor: pointer;
  font-size: 18px;
  color: #eee;
  border-bottom: 1px solid #333;
  transition: background 0.2s ease;
  user-select: none;
}

.dropdown-list li:last-child {
  border-bottom: none;
}

.dropdown-list li:hover {
  background: #00aaff44;
}

/* Footer */
footer {
  background: #1e1e1e;
  padding: 18px;
  text-align: center;
  color: #7a8ea1;
  font-size: 15px;
  letter-spacing: 0.02em;
  width: 100%;
  user-select: none;
  box-shadow: inset 0 1px 2px #0008;
  margin-top: auto;
  font-weight: 500;
}
footer a {
  color: #00aaff;
  text-decoration: none;
  font-weight: 600;
}
footer a:hover {
  text-decoration: underline;
}

/* Footer icons container */
.footer-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}
.icon-link .icon {
  fill: #00aaff;
  width: 26px;
  height: 26px;
  transition: fill 0.3s ease;
  vertical-align: middle;
}
.icon-link:hover .icon {
  fill: #008fcc;
}

/* Responsive */
@media (max-width: 760px) {
  section.features {
    flex-direction: column;
    align-items: center;
  }
  .feature {
    width: 90%;
  }
  main {
    padding: 40px 15px;
  }
  header {
    padding: 14px 20px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Themed scrollbar */
.dropdown-list::-webkit-scrollbar {
  width: 10px;
}

.dropdown-list::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 10px;
}

.dropdown-list::-webkit-scrollbar-thumb {
  background-color: #00aaffaa;
  border-radius: 10px;
  border: 2px solid #1a1a1a;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
  background-color: #00aaff;
}

/* Centering and layout for all.html page */
.features-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 25px;
  text-align: center;
  min-height: 80vh;
}

.features-title {
  font-size: 36px;
  color: #00aaff;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center the feature cards */
  gap: 40px;
  max-width: 980px;
}

/* Button on all.html */
.btn-all-features {
  background: linear-gradient(135deg, #00aaff, #005f99);
  color: white;
  padding: 14px 40px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 170, 255, 0.45);
  text-decoration: none;
  transition: background 0.4s ease, box-shadow 0.3s ease, transform 0.2s ease;
  display: inline-block;
  user-select: none;
  margin-top: 40px;
}
.btn-all-features:hover {
  background: linear-gradient(135deg, #008fcc, #004766);
  box-shadow: 0 8px 24px rgba(0, 143, 204, 0.7);
  transform: scale(1.05);
}

/* Divider line between headline and features */
.features-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #00aaff, #005f99);
  margin: 30px auto 50px auto;
  border-radius: 2px;
  box-shadow: 0 0 10px #00aaff88;
}
