/* navbar.css */

:root {
  --text: #ffffff;
  --accent: #a855f7;
  --card-dark: rgba(0,0,0,0.45);
  --card-light: rgba(255,255,255,0.6);
  --bg-dark: linear-gradient(-45deg,#000,#4c1d95,#000,#6d28d9);
  --bg-light: linear-gradient(-45deg,#ffffff,#c084fc,#ffffff,#a855f7);
}

body.light {
  --text: #111111;
  --accent: #9333ea;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* Animated Background */
body::before {
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-dark);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
}

body.light::before {
  background: var(--bg-light);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navbar */
.navbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 40px;
}

.site-name {
  font-weight:bold;
  font-size:20px;
  text-decoration:none;
  color:var(--text);
  position:relative;
}

.nav-right {
  display:flex;
  align-items:center;
  gap:18px;
}

.nav-right a {
  text-decoration:none;
  color:var(--text);
  position:relative;
}

.nav-right a::after,
.site-name::after {
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:0%;
  height:2px;
  background:var(--accent);
  transition:0.3s;
}

.nav-right a:hover::after,
.site-name:hover::after {
  width:100%;
}

.download-btn {
  padding:6px 14px;
  border-radius:8px;
  background:var(--accent);
  color:#000;
  font-weight:bold;
}

.theme-toggle {
  width:36px;
  height:36px;
  border-radius:50%;
  border:none;
  font-size:18px;
  cursor:pointer;
  background:#ffffff;
  transition:0.3s;
}

body.light .theme-toggle {
  background:#000000;
}

.card {
  background: var(--card-dark);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 16px;
  max-width: 650px;
  margin: 20px auto;
  transition: 0.3s;
  text-align:center;
}

body.light .card {
  background: var(--card-light);
}

.button {
  display:inline-block;
  margin:10px;
  padding:12px 26px;
  border-radius:8px;
  background:var(--accent);
  color:#000;
  font-weight:bold;
  text-decoration:none;
  transition:0.3s;
}

.button:hover {
  transform:scale(1.08);
}

footer {
  text-align:center;
  padding:30px;
  font-size:14px;
  border-top:1px solid rgba(255,255,255,0.1);
}

@media(max-width:768px){
  .navbar { flex-direction:column; gap:12px; }
  .nav-right { flex-wrap:wrap; justify-content:center; }
}
