/* Modern Navigation Styles */

.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.main-header.scrolled {
  padding: 0.2rem 0;
  backdrop-filter: blur(10px);
  background-color: rgba(var(--bg-primary-rgb), 0.85);
}

/* Desktop Navigation */
#desktop-nav {
  background-color: transparent;
  border-bottom: none;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo styling */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s ease;
}

.nav-logo:hover {
  transform: translateY(-2px);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.logo-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.nav-profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-logo:hover .nav-profile-img {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

/* Navigation links */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.nav-link span {
  position: relative;
  z-index: 1;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(var(--accent-rgb), 0.1);
  border-radius: 6px;
  transition: all 0.3s ease;
  z-index: 0;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::before {
  height: 100%;
}

.nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-link.active::before {
  height: 100%;
}

/* Download CV button */
.btn-download {
  background-color: var(--accent);
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--accent);
  box-shadow: 0 4px 6px rgba(var(--accent-rgb), 0.2);
}

.btn-download:hover {
  background-color: transparent;
  color: var(--accent) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(var(--accent-rgb), 0.3);
}

.btn-download i {
  font-size: 0.9rem;
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.theme-toggle-text {
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.theme-toggle:hover {
  background-color: var(--bg-secondary);
  color: var(--accent);
  border-color: var(--border);
}

/* Mobile Navigation */
#hamburger-nav {
  display: none;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.hamburger-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

.hamburger-icon.open span:first-child {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: translateY(-11px) rotate(-45deg);
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-primary);
  width: 250px;
  max-height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  margin-top: 0.5rem;
  opacity: 0;
  display: flex;
  flex-direction: column;
  list-style-type: none;
  transform: translateY(-10px);
  z-index: 1000;
}

.menu-links.open {
  max-height: 450px;
  opacity: 1;
  padding: 0.75rem 0;
  transform: translateY(0);
}

.menu-links ul {
  list-style: none;
  width: 100%;
  padding: 0;
}

.menu-links li {
  list-style: none;
  width: 100%;
}

.menu-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 100%;
  border-left: 3px solid transparent;
}

.menu-links a:hover {
  color: var(--accent);
  background-color: var(--bg-secondary);
  border-left-color: var(--accent);
}

.menu-links a.mobile-download {
  margin: 0.75rem 1rem;
  background-color: var(--accent);
  color: white;
  padding: 0.8rem;
  border-radius: 8px;
  text-align: center;
  justify-content: center;
  font-weight: 600;
  width: calc(100% - 2rem);
  border-left: none;
}

.menu-links a.mobile-download:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.menu-links .theme-toggle {
  margin: 0.5rem 1rem;
  width: calc(100% - 2rem);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1rem;
  border: 1px solid var(--border);
}

.menu-links .theme-toggle i {
  margin-right: 0.5rem;
}

.menu-links .theme-toggle span {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Navigation progress bar */
.nav-progress-container {
  height: 3px;
  width: 100%;
  background-color: transparent;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1001;
}

.nav-progress-bar {
  height: 100%;
  width: 0;
  background-color: var(--accent);
  transition: width 0.1s ease;
}

/* Active link indicator */
.nav-links .active-indicator {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 3px;
  background-color: var(--accent);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  #desktop-nav {
    display: none;
  }
  
  #hamburger-nav {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .theme-toggle-text {
    display: inline-block;
  }
  
  .theme-toggle {
    padding: 0.5rem 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
  }
}

@media (max-width: 480px) {
  .nav-logo .logo-name {
    font-size: 1rem;
  }
  
  .hamburger-icon {
    height: 20px;
    width: 26px;
  }
  
  .menu-links {
    width: 100%;
    left: 0;
    border-radius: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .menu-links a {
    padding: 0.8rem 1.25rem;
  }
}

/* Animations */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-header {
  animation: fadeSlideDown 0.5s ease forwards;
}
