:root {
  --background: 0 0% 0%;
  --foreground: 0 0% 100%;
  --card: 0 0% 10%;
  --card-foreground: 0 0% 100%;
  --popover: 0 0% 5%;
  --popover-foreground: 0 0% 100%;
  --primary: 120 100% 50%;
  --primary-foreground: 0 0% 0%;
  --secondary: 0 0% 20%;
  --secondary-foreground: 0 0% 100%;
  --muted: 0 0% 15%;
  --muted-foreground: 0 0% 70%;
  --accent: 120 100% 70%;
  --accent-foreground: 0 0% 0%;
  --destructive: 0 100% 50%;
  --destructive-foreground: 0 0% 100%;
  --border: 0 0% 25%;
  --input: 0 0% 20%;
  --ring: 120 100% 50%;
  --radius: 0.5rem;
}

* {
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-image:
    radial-gradient(
      circle at top right,
      hsl(var(--primary) / 0.1),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom left,
      hsl(var(--primary) / 0.1),
      transparent 50%
    );
  background-attachment: fixed;
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

.top-bar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);

  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(10px);

  height: var(--navbar-height);
  max-width: 1200px;
  width: 92%;

  padding: 0 22px;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);

  display: flex;
  align-items: center;
  justify-content: space-between;

  z-index: 1000;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.top-bar nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.container {
  max-width: 1200px;
  margin: 120px auto 0 auto;
  padding: 0 2rem;
}

header {
  padding: 0;
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  background-color: hsl(var(--background) / 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(45deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: hsl(var(--foreground));
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: hsl(var(--primary));
}

footer {
  padding: 3rem 0;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-3px);
}

.copyright {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.mega-footer {
  color: hsl(var(--foreground));
  padding: 4rem 2rem 2rem;
  border-top: 1px solid hsl(var(--border));
}

.footer-container {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 4rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-logo span {
  font-size: 2rem;
  font-weight: 800;
}

.language-select select {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  outline: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.language-dropdown {
  position: relative;
  width: 200px;
}

.lang-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  top: 110%;
  width: 220px;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);

  border-radius: 20px;
  padding: 8px;

  display: none;
  flex-direction: column;
  gap: 4px;

  max-height: 200px;
  overflow-y: auto;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lang-menu.open {
  display: flex;
}

.lang-option {
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-menu::-webkit-scrollbar {
  width: 6px;
}

.lang-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.lang-option {
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lang-option.active {
  background: rgba(255, 255, 255, 0.15);
}

.language-select select {
  appearance: none;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.footer-socials img {
  width: 22px;
  height: 22px;
  filter: invert(1);
  transition: transform 0.2s ease;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.footer-socials a:hover img {
  transform: scale(1.2);
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #dcdcff;
}

.footer-col a {
  display: block;
  color: white;
  text-decoration: none;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-col a:hover {
  text-decoration: underline;
  opacity: 1;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

.social-link img {
  width: 20px;
  height: 20px;
  filter: invert(1);
  transition: transform 0.3s ease;
}

.social-link:hover img {
  transform: scale(1.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px hsl(var(--primary) / 0.3);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
  transform: translateY(-2px);
}

.alert {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.alert-error {
  background-color: hsl(var(--destructive) / 0.2);
  border: 1px solid hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}
