* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
  height: 100%;
  min-height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: rgb(255, 255, 255);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, rgb(11, 19, 43), rgb(28, 37, 65));
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: transparent;
  backdrop-filter: none;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

body.scrolled .main-header {
  background-color: rgba(58, 58, 58, 0.6);
  backdrop-filter: blur(6px);
}

.hero {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  min-height: 100vh;
  background: transparent;
}

.hero.scrolled {
  background-color: transparent;
  backdrop-filter: blur(10px);
}

#bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.menu-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 45px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 6;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menu-btn .bar {
  height: 4px;
  width: 100%;
  background-color: rgb(255, 255, 255);
  border-radius: 2px;
}

.side-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: linear-gradient(180deg, rgb(5, 9, 31), rgba(0, 0, 0, 0.161));
  box-shadow: 2px 0 10px rgb(34, 34, 34);
  z-index: 5;
  transition: left 0.3s ease;
  padding-top: 60px;
}

.side-menu.active {
  left: 0;
}

.side-menu ul {
  list-style: none;
  padding: 0 20px;
}

.side-menu ul li {
  margin: 20px 0;
}

.side-menu ul li a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.side-menu ul li a:hover {
  color: rgb(255, 212, 59);
}

.language-dropdown {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgb(255, 255, 255);
  border: none;
  padding: 8px 14px;
  border-radius: 25px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

.language-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.language-options {
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  margin-top: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease;
}

.language-dropdown.active .language-options {
  display: flex;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: rgb(255, 255, 255);
  cursor: pointer;
  transition: background 0.3s ease;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.flag.es {
  background: linear-gradient(
    to bottom,
    rgb(170, 21, 27) 33%,
    rgb(241, 191, 0) 34%,
    rgb(241, 191, 0) 66%,
    rgb(170, 21, 27) 67%
  );
}

.flag.de {
  background: linear-gradient(
    to bottom,
    rgb(0, 0, 0) 33%,
    rgb(221, 0, 0) 34%,
    rgb(221, 0, 0) 66%,
    rgb(255, 206, 0) 67%
  );
}

.flag.us {
  background: repeating-linear-gradient(
    to bottom,
    rgb(178, 34, 52) 0%,
    rgb(178, 34, 52) 7.7%,
    rgb(255, 255, 255) 7.7%,
    rgb(255, 255, 255) 15.4%
  );
  position: relative;
}

.flag.us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 50%;
  background-color: rgb(60, 59, 110);
  border-top-left-radius: 50%;
}

#main-footer {
  width: 100%;
  padding: 12px 0;
  text-align: center;
  color: rgb(220, 220, 220);
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  position: relative;
  bottom: 0;
  left: 0;
  z-index: 2;
  font-weight: 700;
}

#main-footer a {
  color: rgb(30, 144, 255);
  text-decoration: none;
  transition: color 0.3s ease;
}

#main-footer a:hover {
  color: rgb(99, 179, 255);
}
