:root {
  --background-color: #0f0f0f;
  --text-color: #eaeaea;
  --card-color: #1b1b1b;
  --button-color: #ff6f61;
  --highlight-color: #ffd700;
  --border-color: #2e2e2e;
  --link-color: #4ecdc4;
  --shadow-color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] {
  --background-color: #ffffff;
  --text-color: #1a1a1a;
  --card-color: #f4f4f4;
  --button-color: #ff8364;
  --highlight-color: #ffc107;
  --border-color: #dcdcdc;
  --link-color: #1e88e5;
  --shadow-color: rgba(0, 0, 0, 0.2);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Barlow Condensed", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100vh;
}

.logo img {
  max-width: 600px;
  margin-bottom: 2rem;
  animation: appear 1.5s ease-out forwards, subtle-move 3s ease-in-out 1.5s infinite;
}

@keyframes appear {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(50px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes subtle-move {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

#nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu ul {
  display: flex;
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  position: relative;
  display: inline-block;
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: 2px;
  padding: 1rem 2rem;
  isolation: isolate;
  transition: color 0.6s ease, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-menu a:hover {
  transform: translateY(-5px) scale(1.15);
  color: var(--highlight-color);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
               0 0 20px rgba(255, 255, 255, 0.2),
               0 0 30px rgba(255, 255, 255, 0.1);
}

.nav-menu a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 80%);
  opacity: 0;
  z-index: -1;
  border-radius: 50%;
  transition: opacity 0.6s ease, transform 0.8s ease;
}

.nav-menu a:hover::before {
  opacity: 1;
  transform: scale(1.3);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(-50%);
  transition: width 0.5s ease-in-out;
}

.nav-menu a:hover::after {
  width: 100%;
}

[data-theme="light"] .nav-menu a {
  color: var(--text-color);
}

[data-theme="light"] .nav-menu a:hover {
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3),
               0 0 20px rgba(0, 0, 0, 0.2),
               0 0 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-menu a::after {
  background: rgba(0, 0, 0, 0.4);
}

.theme-toggle-desktop {
  position: relative;
  display: inline-block;
  background: none;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 50%;
  padding: 0.6rem 1.2rem;
  margin-top: 2rem;
  isolation: isolate;
  transition: transform 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.theme-toggle-desktop:hover {
  transform: scale(1.2) rotate(360deg);
  background-color: var(--highlight-color);
  border-color: var(--highlight-color);
  color: var(--background-color);
  box-shadow: 0 0 15px var(--highlight-color), 0 0 30px var(--highlight-color);
}

.theme-toggle-desktop::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.theme-toggle-desktop:hover::before {
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

[data-theme="light"] .theme-toggle-desktop {
  border-color: var(--text-color);
  color: var(--text-color);
}

[data-theme="light"] .theme-toggle-desktop:hover {
  background-color: rgba(240, 240, 240, 0.9);
  color: var(--text-color);
  border-color: rgba(240, 240, 240, 0.6);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 0, 0, 0.1);
}

.theme-toggle-mobile {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: none;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  font-size: 1.8rem; 
  cursor: pointer;
  border-radius: 50%;
  margin-top: 2rem;
  isolation: isolate;
  transition: transform 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.theme-toggle-mobile i {
  font-size: 2rem; 
  transition: transform 0.6s ease, color 0.4s ease;
}

.theme-toggle-mobile.active i {
  transform: scale(1.5) rotate(360deg);
  color: var(--highlight-color);
}

.theme-toggle-mobile::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.theme-toggle-mobile.active::before {
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

[data-theme="light"] .theme-toggle-mobile {
  border-color: var(--text-color);
  color: var(--text-color);
}

[data-theme="light"] .theme-toggle-mobile.active {
  background-color: rgba(240, 240, 240, 0.9);
  border-color: rgba(240, 240, 240, 0.6);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .theme-toggle-mobile.active {
  background-color: var(--highlight-color);
  box-shadow: 0 0 15px var(--highlight-color), 0 0 30px var(--highlight-color);
}

@media screen and (max-width: 868px) {
  .logo img {
    max-width: 90%;
    margin-bottom: 2rem;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-menu a {
    font-size: 1.8rem;
    padding: 1rem 1rem;
  }

  .theme-toggle-mobile {
    font-size: 2rem;
    margin-top: 3rem;
  }
}

.theme-toggle-desktop {
  display: inline-block;
}

.theme-toggle-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .theme-toggle-desktop {
    display: none;
  }

  .theme-toggle-mobile {
    display: inline-block;
  }
}