:root {
  --primary-color: #007aff;
  --primary-dark: #0062cc;
  --background-light: #ffffff;
  --background-dark: #111111;
  --text-primary-light: #333333;
  --text-secondary-light: #666666;
  --text-primary-dark: #f5f5f7;
  --text-secondary-dark: #86868b;
  --card-bg-light: #ffffff;
  --card-bg-dark: #1d1d1f;
  --border-light: #d2d2d7;
  --border-dark: #333333;
  --shadow-light: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.3);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-primary-light);
  background-color: var(--background-light);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.5s ease, color 0.5s ease;
  cursor: none;
  overflow-x: hidden;
  padding-top: 70px;
}

/* Apply box-sizing to all elements */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body.dark-theme {
  color: var(--text-primary-dark);
  background-color: var(--background-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* 動態背景 */
.background-animation {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.2;
  pointer-events: none; /* Ensure background doesn't interfere with clicks */
}

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.circles div {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, var(--primary-color), #5856d6);
  border-radius: 50%;
  animation: animate 25s linear infinite;
  bottom: -150px;
}

.circles div:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
  animation-duration: 20s;
}

.circles div:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles div:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles div:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles div:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles div:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles div:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles div:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles div:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles div:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
    border-radius: 50%;
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 10%;
  }
}

/* 自定義游標 */
#custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(0, 122, 255, 0.5);
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.15s, height 0.15s, background-color 0.3s;
  will-change: transform; /* Performance optimization */
}

#custom-cursor.cursor-hover {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 122, 255, 0.3);
  transition: width 0.3s, height 0.3s;
}

/* Fallback for mobile devices */
@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  #custom-cursor {
    display: none;
  }
}

/* 回到頂部按鈕 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: var(--primary-dark);
}

/* 排版 */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary-light);
}

.dark-theme p {
  color: var(--text-secondary-dark);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
  padding: 0;
}

/* 按鈕 */
button {
  cursor: pointer;
  border: none;
  border-radius: var(--border-radius);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-color), #5856d6);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.6);
}

.secondary-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.1);
}

.secondary-btn:hover {
  background-color: rgba(0, 122, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.2);
}

/* 頭部樣式 */
header {
  position: fixed;
  width: 100%;
  top: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 15px 0;
  transition: transform 0.3s ease;
}

.dark-theme header {
  background-color: rgba(29, 29, 31, 0.8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--text-primary-light);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.dark-theme nav ul li a {
  color: var(--text-primary-dark);
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #5856d6);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-primary-light);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.dark-theme .mobile-menu-toggle span {
  background-color: var(--text-primary-dark);
}

/* 英雄部分 */
#hero {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-content h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.hero-content h2 span {
  background: linear-gradient(90deg, #007aff, #5856d6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

#hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.dark-theme .hero-image img {
  box-shadow: var(--shadow-dark);
}

.hero-image img:hover {
  transform: perspective(1000px) rotateY(-5deg) translateY(-10px);
  box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.2);
}

/* 區塊樣式 */
section {
  padding: 100px 0;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
}

section.active {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  font-size: 2.5rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #007aff, #5856d6);
  margin: 20px auto 0;
  border-radius: 2px;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  color: var(--text-secondary-light);
}

.dark-theme .section-description {
  color: var(--text-secondary-dark);
}

/* 功能部分 */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.feature-card {
  background-color: var(--card-bg-light);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(88, 86, 214, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dark-theme .feature-card {
  background-color: var(--card-bg-dark);
  box-shadow: var(--shadow-dark);
  border: 1px solid var(--border-dark);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.dark-theme .feature-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Make feature icons much larger to fill most of the card */
.feature-icon {
  margin-bottom: 30px;
  width: 100%; /* Take full width of the card */
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.feature-icon img {
  width: 100%; /* Fill the entire width */
  max-width: 280px; /* Maximum width to prevent overflow */
  height: auto; /* Maintain aspect ratio */
  object-fit: contain; /* Ensure image maintains aspect ratio */
  transition: transform 0.3s ease;
}

/* Remove glow effect as requested */
.dark-theme .feature-icon img {
  filter: none;
}

.feature-card:hover .feature-icon img {
  transform: scale(1.05);
}

/* Add responsive adjustments */
@media (max-width: 768px) {
  .feature-icon img {
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .feature-icon img {
    max-width: 200px;
  }

  .feature-card {
    padding: 30px 20px;
  }
}

/* 時間線部分 */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, #007aff, #5856d6);
  transform: translateX(-50%);
}

.version-item {
  position: relative;
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.version-item.active {
  opacity: 1;
  transform: translateY(0);
}

.version-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}

.version-item:nth-child(even) {
  padding-left: calc(50% + 30px);
  text-align: left;
}

.version-item::before {
  content: attr(data-year);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #007aff, #5856d6);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  z-index: 3; /* Increased z-index to appear above the dot */
}

.version-item::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.3);
  z-index: 2;
}

.version-content {
  background-color: var(--card-bg-light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  margin-top: 30px;
  position: relative;
}

.dark-theme .version-content {
  background-color: var(--card-bg-dark);
  box-shadow: var(--shadow-dark);
  border: 1px solid var(--border-dark);
}

.version-badge {
  display: inline-block;
  background: linear-gradient(90deg, #007aff, #5856d6);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.version-features {
  margin-top: 20px;
  text-align: left;
}

.version-features li {
  padding: 8px 0;
  position: relative;
}

.version-features li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* 效能部分 */
.chart-container {
  background-color: var(--card-bg-light);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow-light);
  margin: 0 auto 60px;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  max-width: 800px; /* Center the chart */
  height: auto; /* Change from fixed 400px to auto */
  min-height: 300px; /* Add minimum height */
}

.chart-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(88, 86, 214, 0.05));
  pointer-events: none;
}

.dark-theme .chart-container {
  background-color: var(--card-bg-dark);
  box-shadow: var(--shadow-dark);
  border: 1px solid var(--border-dark);
}

.performance-metrics {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.metric-card {
  background: linear-gradient(135deg, #007aff, #5856d6);
  color: white;
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 6s infinite linear;
  pointer-events: none;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }
  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

.metric-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.metric-value {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.metric-label {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* 伺服器比較部分 */
.server-comparison {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.server-item {
  flex: 1;
  min-width: 300px;
  background-color: var(--card-bg-light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-light);
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.dark-theme .server-item {
  background-color: var(--card-bg-dark);
  box-shadow: var(--shadow-dark);
  border: 1px solid var(--border-dark);
}

.server-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.dark-theme .server-item:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.server-preview {
  margin: 30px auto;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-light);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.dark-theme .server-preview {
  background-color: var(--background-dark);
  border: 1px solid var(--border-dark);
}

.server-preview img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.server-features {
  text-align: left;
  padding-left: 20px;
}

.server-features li {
  position: relative;
  padding: 8px 0;
}

.server-features li::before {
  content: "•";
  color: #999;
  font-weight: bold;
  position: absolute;
  left: -15px;
}

.server-features.highlight li::before {
  content: "✓";
  color: var(--primary-color);
}

.server-divider {
  width: 2px;
  height: 300px;
  background: linear-gradient(to bottom, #007aff, #5856d6);
  align-self: center;
}

/* 下載部分 */
.download-section {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(88, 86, 214, 0.1));
  padding: 80px 0;
  text-align: center;
  border-radius: var(--border-radius);
  margin-top: 50px;
}

.download-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.download-description {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.2rem;
}

.download-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.download-card {
  background-color: var(--card-bg-light);
  border-radius: var(--border-radius);
  padding: 30px;
  width: 250px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.dark-theme .download-card {
  background-color: var(--card-bg-dark);
  box-shadow: var(--shadow-dark);
  border: 1px solid var(--border-dark);
}

.download-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.dark-theme .download-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.download-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.download-card h3 {
  margin-bottom: 15px;
}

.download-card p {
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.download-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-color), #5856d6);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 122, 255, 0.4);
}

/* 頁腳 */
footer {
  background-color: var(--card-bg-light);
  color: var(--text-primary-light);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border-light);
  position: relative;
}

.dark-theme footer {
  background-color: var(--card-bg-dark);
  color: var(--text-primary-dark);
  border-top: 1px solid var(--border-dark);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 30px;
  margin-right: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.footer-column h4 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--text-secondary-light);
  opacity: 0.8;
  transition: var(--transition);
}

.dark-theme .footer-column ul li a {
  color: var(--text-secondary-dark);
}

.footer-column ul li a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary-light);
}

.dark-theme .footer-bottom {
  border-top: 1px solid var(--border-dark);
  color: var(--text-secondary-dark);
}

/* 動畫 */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes moveAround {
  0% {
    top: 50%;
    left: 50%;
  }
  25% {
    top: 30%;
    left: 30%;
  }
  50% {
    top: 30%;
    left: 70%;
  }
  75% {
    top: 70%;
    left: 70%;
  }
  100% {
    top: 50%;
    left: 50%;
  }
}

/* 響應式設計 */
@media (max-width: 992px) {
  .hero-content h2 {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  #hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 50px;
  }

  .cta-buttons {
    justify-content: center;
  }

  .hero-image {
    justify-content: center;
  }

  .timeline-line {
    left: 20px;
  }

  .version-item:nth-child(odd),
  .version-item:nth-child(even) {
    padding-left: 60px;
    padding-right: 0;
    text-align: left;
  }

  .version-item::before {
    left: 20px;
  }

  .version-item::after {
    left: 20px;
  }

  .server-divider {
    width: 100%;
    height: 2px;
    margin: 20px 0;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--card-bg-light);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .dark-theme nav ul {
    background-color: var(--card-bg-dark);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }

  nav ul.active {
    right: 0;
  }

  nav ul li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0s;
  }

  nav ul.active li {
    opacity: 1;
    transform: translateY(0);
  }

  nav ul.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  nav ul.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  nav ul.active li:nth-child(3) {
    transition-delay: 0.3s;
  }
  nav ul.active li:nth-child(4) {
    transition-delay: 0.4s;
  }

  /* Mobile menu toggle animation */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row; /* Keep as row for mobile toggle */
    align-items: center;
  }

  .logo {
    margin-bottom: 0;
  }

  .hero-content h2 {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 2.rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    margin-top: 30px;
    gap: 30px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .performance-metrics {
    flex-direction: column;
  }

  .metric-card {
    width: 100%;
  }

  .download-options {
    flex-direction: column;
    align-items: center;
  }

  .download-card {
    width: 100%;
    max-width: 300px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }

  .theme-toggle {
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .feature-card {
    padding: 25px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-title::after {
    width: 60px;
    margin: 15px auto 0;
  }

  .metric-value {
    font-size: 2.5rem;
  }

  .metric-label {
    font-size: 1rem;
  }

  .server-item {
    padding: 20px;
  }

  .server-preview {
    width: 150px;
    height: 150px;
  }

  .theme-toggle {
    top: 10px;
    right: 10px;
  }

  .toggle-switch {
    width: 50px;
    height: 25px;
  }

  .toggle-circle.active {
    transform: translateX(21px);
  }
}

@supports not (backdrop-filter: blur(20px)) {
  header,
  .toggle-switch {
    background-color: var(--card-bg-light);
  }

  .dark-theme header,
  .dark-theme .toggle-switch {
    background-color: var(--card-bg-dark);
  }
}