﻿/* Universal floating navbar - load this file LAST on every page */

.navbar {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 1.5rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(1100px, calc(100vw - 3rem));
  min-height: 3.25rem;
  padding: 0.8rem 2.5rem;
  margin: 0;
  background: rgba(11, 15, 20, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 230, 255, 0.05);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar .logo {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
}

.navbar .logo a {
  display: inline-block;
  text-decoration: none;
  color: #00d1ff;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.navbar .logo a:hover {
  opacity: 0.85;
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
  flex: 0 0 auto;
  order: 3;
}

.hamburger i {
  font-size: 1.5rem;
  color: #00e6ff;
}

.nav-links {
  position: static;
  left: auto;
  right: auto;
  transform: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.75rem;
  flex: 1 1 auto;
  margin: 0 0 0 1.5rem;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.nav-links li {
  flex: 0 0 auto;
}

.nav-links a {
  text-decoration: none;
  color: #c8d4de;
  font-family: 'Space Mono', monospace;
  font-size: 0.825rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00e6ff;
}

.nav-links a.nav-resume,
.nav-links a.nav-resume:hover,
.nav-links a.nav-resume.active {
  background: #00e6ff;
  color: #000;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 230, 255, 0.3);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.nav-links a.nav-resume:hover {
  background: #33ebff;
  box-shadow: 0 0 25px rgba(0, 230, 255, 0.5);
  transform: translateY(-1px);
}

@media (max-width: 1024px) and (min-width: 769px) {
  .navbar {
    width: min(1100px, calc(100vw - 2rem));
    padding: 0.75rem 1.75rem;
  }

  .nav-links {
    gap: 1.25rem;
    margin-left: 1rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .nav-links a.nav-resume {
    padding: 0.45rem 1rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .navbar {
    top: 1rem;
    width: calc(100vw - 1.5rem);
    max-width: none;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    transform: none;
    height: 100vh;
    width: 70%;
    max-width: 320px;
    margin: 0;
    flex: none;
    background: rgba(11, 15, 20, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0;
    border-radius: 0;
    border: none;
    transition: right 0.4s ease-in-out;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: -5px 0 15px rgba(0, 230, 255, 0.1);
    z-index: 15;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
}
