/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}
  
nav.scrolled {
    padding: 15px 5%;
    background: rgba(10, 10, 10, 0.95);
}
  
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
  
.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, var(--accent), var(--accent-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoGlow 3s ease-in-out infinite;
    z-index: 1100;
}
  
@keyframes logoGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 255, 136, 0.5)); }
}
  
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}
  
.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}
  
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
  
.nav-links a:hover::after {
    width: 100%;
}
  
.nav-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Theme Toggle Button */
#themeToggle {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    background: linear-gradient(45deg, var(--accent), var(--accent-alt));
    color: var(--primary);
    transition: all 0.3s ease;
}
  
#themeToggle:hover {
    transform: scale(1.05);
}

/* Burger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
  }
  
  .menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transition: 0.3s;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

/* Mobile adaptation */
@media (max-width: 768px) {
    nav {
        padding: 15px 10px;
        width: 100vw;        
        max-width: 100vw;     
      }
    
      .nav-container {
        max-width: 100%;       
        padding: 0;            
      }

    .menu-toggle {
        display: flex;
        order: 2;
        margin-left: auto;     
      }

  .nav-links {
    order: 3;
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    text-align: center;
    padding: 15px 0;
  }

  .nav-links.show {
    display: flex;
  }

  #themeToggle {
    order: 3;
    margin-left: 15px;
    font-size: 13px;
    padding: 5px 10px;
    white-space: nowrap; 
  }
}

  
  