/* ============================================================
   NAVBAR.CSS — Fixed Navigation Bar
   Sri Harshita Pilla Portfolio
   ============================================================ */

/* ─────────────────────────────────────────────────────────
   NAVBAR CONTAINER — Fixed top, full width
   ───────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  transition: all var(--transition-fast);
}

/* Scroll effect */
.navbar.navbar--scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* ─────────────────────────────────────────────────────────
   LEFT SECTION — Logo + Name + Subtitle
   ───────────────────────────────────────────────────────── */
.navbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-accent-orange);
  font-weight: 700;
}

.navbar__branding {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.navbar__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1;
}

.navbar__subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────
   CENTER SECTION — Navigation Links
   ───────────────────────────────────────────────────────── */
.navbar__center {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent-orange);
  transition: width var(--transition-fast);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--color-text-primary);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

/* ─────────────────────────────────────────────────────────
   RIGHT SECTION — CTA Button
   ───────────────────────────────────────────────────────── */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--color-accent-orange);
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  white-space: nowrap;
}

.navbar__cta::after {
  content: '↗';
  font-size: 11px;
}

.navbar__cta:hover {
  background: #D63F0A;
  transform: translateY(-2px);
}

.navbar__cta:active {
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────
   HAMBURGER MENU — Mobile only
   ───────────────────────────────────────────────────────── */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.navbar__hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

.navbar__hamburger.active .navbar__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.navbar__hamburger.active .navbar__hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active .navbar__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* ─────────────────────────────────────────────────────────
   MOBILE MENU — Dropdown navigation
   ───────────────────────────────────────────────────────── */
.navbar__mobile-menu {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  flex-direction: column;
  padding: 20px 40px;
  gap: 16px;
  animation: slideDown var(--transition-base) ease-out;
}

.navbar__mobile-menu.active {
  display: flex;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar__mobile-link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.navbar__mobile-link:hover,
.navbar__mobile-link.active {
  color: var(--color-accent-orange);
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE — Tablet and Mobile
   ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .navbar {
    padding: 14px 24px;
  }

  .navbar__center {
    gap: 24px;
  }

  .navbar__link {
    font-size: 13px;
  }

  .navbar__cta {
    font-size: 12px;
    padding: 8px 14px;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 12px 16px;
    height: 60px;
  }

  .navbar__branding {
    gap: 0;
  }

  .navbar__name {
    font-size: 12px;
  }

  .navbar__subtitle {
    display: none;
  }

  .navbar__center {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__mobile-menu {
    padding: 16px;
  }

  .navbar__cta {
    width: 100%;
    justify-content: center;
  }
}

/* ─────────────────────────────────────────────────────────
   ACCESSIBILITY — Reduced motion
   ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .navbar,
  .navbar__link,
  .navbar__cta,
  .navbar__hamburger-line,
  .navbar__mobile-menu {
    transition: none !important;
    animation: none !important;
  }

  .navbar__cta:hover {
    transform: none;
  }

  .navbar__hamburger.active .navbar__hamburger-line:nth-child(1),
  .navbar__hamburger.active .navbar__hamburger-line:nth-child(3) {
    transform: none;
  }
}

/* Add spacing below navbar for fixed position */
body {
  padding-top: 70px;
}

@media (max-width: 640px) {
  body {
    padding-top: 60px;
  }
}
