@keyframes appear {
  from {
    opacity: 0;
    scale: 0.5;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
/* Scroll-triggered animation: add the class "animate-on-scroll" to any
   element that should animate when it enters view. The observer script
   (static/scroll-anim.js) will add the "in-view" class when the element
   intersects the viewport. Use .no-anim to opt-out. */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  will-change: transform, opacity;
}

.animate-on-scroll.in-view {
  animation: appear 300ms linear both;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-on-scroll.in-view {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
/* === NAVBAR === */
.nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto; /* brand | centered nav | cta */
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
}

.links {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  justify-content: center;
}

.links a {
  color: #eaeaea;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.links a:hover {
  opacity: 1;
}

.cta {
  background: var(--accent);
  color: #0b0b0d;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}

.cta:hover {
  background: var(--accent-light);
}

/* === HERO === */
.hero {
  padding: 100px 0 80px;
}

.hero-inner {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: space-between;
}

.hero-left {
  flex: 1;
}

.hero-right {
  width: 380px;
  text-align: center;
}

h1 {
  font-size: 60px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 580px;
  margin-bottom: 32px;
}

.actions1 {
  display: flex;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.primary {
  background: var(--accent);
  color: #0b0b0d;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.3);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

/* === FEATURES === */
.features-row {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: space-between;
}

.feature-card {
  flex: 1;
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  justify-content: space-between;
}

.feature-card:hover {
  background: #16171a;
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.feature-card h4 {
  margin-bottom: 8px;
  color: var(--accent);
}

/* === LANGUAGE SECTION === */
.language {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 100px 0;
}

.lang-left {
  flex: 1;
}

.lang-right {
  width: 340px;
}
.lang-right img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 15px;
}
.art-card {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  height: 260px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: white;
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.5);
  transform: rotate(-2deg);
}

.language h2 {
  font-size: 36px;
  margin-bottom: 14px;
}

.language ul {
  margin: 18px 0 24px;
  padding-left: 20px;
  list-style: disc;
  color: var(--muted);
}

/* Apply the same card appearance and hover/animation to all card-like elements */
.feature-card,
.doc-card,
.community-card,
.art-card,
.feature,
.contact-info,
.card,
.about-inner div {
  background: var(--card);
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-card:hover,
.doc-card:hover,
.community-card:hover,
.art-card:hover,
.feature:hover,
.contact-info:hover,
.card:hover,
.about-inner div:hover {
  transform: translateY(-4px);
  background: #17181b;
  border-color: rgba(139, 92, 246, 0.25);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #0c0c0e;
  padding: 25px 0;
  margin-top: 60px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links a {
  color: #eaeaea;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.footer-links a:hover {
  opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner,
  .language {
    flex-direction: column;
    text-align: center;
  }
  .links {
    display: none;
  }
  .hero-right {
    display: none;
  }
  .language {
    gap: 30px;
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  line-height: 1;
}

.brand h1 {
  font-size: inherit; /* ensure the h1 uses .brand font-size */
  margin: 0;
  line-height: 1;
}

.brand img {
  height: 1em; /* same height as the .brand font-size (matches h1) */
  width: auto;
  display: block;
}
.big-art img {
  max-width: 100%;
  max-height: 100%;
  opacity: 1;
}
/* override any earlier generic rules so the img matches the h1 */
.brand img {
  height: 1em;
  width: auto;
  display: block;
}
.brand {
  height: min-content;
}
.dc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: #0b0b0d; /* text color to match primary button */
  background: var(--accent); /* primary background */
  border-radius: 15px;
  padding: 10px;
  flex-direction: row-reverse;
  transition: var(--transition);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.3); /* initial glow like .primary */
}
.dc img {
  border-radius: 15px;
  width: 2rem;
  height: 2rem;
  display: block;
}
.dcDiv {
  order: 1;
}
.footer-links {
  order: 2;
}
.dc:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.5); /* same hover shadow as .primary:hover */
}
#Language-of-choice-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-width: 100%;
}

/* === NEW SECTION STYLES === */
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.features-section .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.feature {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
}
.features-cta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.docs-section .docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.doc-card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.doc-card .code {
  background: #09090b;
  padding: 10px;
  border-radius: 8px;
  color: #e6e6e6;
  margin: 12px 0;
  display: block;
}
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.community-card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.about-inner {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}
.about-inner > div {
  flex: 1;
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  margin-top: 18px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.contact-form input,
.contact-form textarea {
  background: #0b0b0d;
  color: #e9ecf2;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px;
  border-radius: 8px;
}
.contact-info {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Responsive tweaks for new sections */
@media (max-width: 900px) {
  .community-grid,
  .docs-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .about-inner {
    flex-direction: column;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-inner {
    grid-template-columns: auto 1fr auto;
  }
}
.brand {
  margin-bottom: 1.7rem;
}
.community-card a.dc {
  gap: 8px;
  color: #0b0b0d;
  background: var(--accent);
  border-radius: 15px;
  padding: 10px;
  flex-direction: row;
  transition: var(--transition);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.3);
  width: fit-content;
}
.contact-form button {
  border: none;
}
.lol {
  background-color: var(--accent);
  color: var(--bg);
  border-radius: 1px;
  font-size: 5px;
}
.hero-left h1 {
  font-family: "Audiowide", sans-serif;
}
