/* ==========================================================================
   nav.css — Header & Navigation styles
   Loaded globally via header.php for every page.
   Page-specific styles live in their own CSS files (about.css, contact.css…)
   ========================================================================== */

/* ── CSS variables (nav-scoped, safe alongside main.css vars) ─────────────── */
:root {
  --nav-h:            70px;
  --nav-hs:           56px;                    /* shrunk height after scroll  */
  --orange:           #FF6A00;
  --orange-glow:      rgba(255, 106, 0, 0.22);
  --surface:          rgba(10, 10, 10, 0.72);
  --surface-scrolled: rgba(10, 10, 10, 0.95);
  --border:           rgba(255, 255, 255, 0.07);
  --border-active:    rgba(255, 106, 0, 0.18);
  --nav-text:         #ffffff;
  --nav-muted:        rgba(255, 255, 255, 0.48);
  --ease:             cubic-bezier(0.22, 1, 0.36, 1);
  --spring:           cubic-bezier(0.34, 1.56, 0.64, 1);
}
body{
font-family: sans-serif;
}

/*custom-logo css*/
.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.logo-mark1 {
    width: 80px;      /* increase container size */
    height: auto;
}

.logo-mark1 img {
    width: 80px;      /* increase image size */
    height: 40px;
}

.logo-mark-footer img{
    height: 25px;
    width: auto;
    display: block;
}

/* ── SCROLL PROGRESS BAR ──────────────────────────────────────────────────── */
#navProgress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--orange), #ff9940);
  box-shadow: 0 0 12px var(--orange-glow);
  z-index: 9999;
  transition: width 0.12s linear;
  pointer-events: none;
}

/* Custom cursor removed — using browser default */

/* ── HEADER SHELL ─────────────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  animation: navDrop 0.65s var(--ease) both;
}
@keyframes navDrop {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  background: var(--surface);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border-bottom: 1px solid var(--border);
  transition: height 0.4s var(--ease),
              background 0.4s,
              border-color 0.4s,
              box-shadow 0.4s;
}
header.scrolled .navbar {
  height: var(--nav-hs);
  background: var(--surface-scrolled);
  border-color: var(--border-active);
  box-shadow: 0 6px 48px rgba(0, 0, 0, 0.55);
}

/* ── LOGO ─────────────────────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Syne', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--nav-text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 32px; height: 32px;
  /*background: var(--orange);*/
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s var(--spring), box-shadow 0.3s;
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; fill: #fff; }
.logo:hover .logo-mark {
  transform: rotate(22deg) scale(1.1);
  box-shadow: 0 0 22px var(--orange-glow);
}
.logo-stack { display: flex; flex-direction: column; line-height: 1; }
.logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nav-muted);
  margin-top: 2px;
}

/* ── DESKTOP NAV LIST ─────────────────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0; padding: 0;
}

/* Staggered entrance animation */
.nav-links li { animation: itemDrop 0.5s var(--ease) both; }
.nav-links li:nth-child(1)  { animation-delay: 0.08s; }
.nav-links li:nth-child(2)  { animation-delay: 0.12s; }
.nav-links li:nth-child(3)  { animation-delay: 0.16s; }
.nav-links li:nth-child(4)  { animation-delay: 0.20s; }
.nav-links li:nth-child(5)  { animation-delay: 0.24s; }
.nav-links li:nth-child(6)  { animation-delay: 0.28s; }
.nav-links li:nth-child(7)  { animation-delay: 0.32s; }
.nav-links li:nth-child(8)  { animation-delay: 0.36s; }
.nav-links li:nth-child(9)  { animation-delay: 0.40s; }
.nav-links li:nth-child(10) { animation-delay: 0.44s; }
@keyframes itemDrop {
  from { opacity: 0; transform: translateY(-9px); }
  to   { opacity: 1; transform: none; }
}

/* ── LINK BASE ────────────────────────────────────────────────────────────── */
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.44rem 0.72rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--nav-muted);
  text-decoration: none;
  border-radius: 6px;
  position: relative;
  transition: color 0.22s, background 0.22s;
  white-space: nowrap;
}

/* Sliding underline on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%; right: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  opacity: 0;
  transition: left 0.3s var(--ease), right 0.3s var(--ease), opacity 0.3s;
}
.nav-links a:hover {
  color: var(--nav-text);
  background: rgba(255, 255, 255, 0.05);
}
.nav-links a:hover::after {
  left: 12px; right: 12px;
  opacity: 0.55;
}

/* ── ACTIVE STATE ─────────────────────────────────────────────────────────── */
.nav-links a.active {
  color: var(--nav-text);
  background: rgba(255, 106, 0, 0.1);
}
.nav-links a.active::after {
  left: 12px; right: 12px;
  opacity: 1;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange-glow);
}
/* Pulsing dot above active link */
.nav-links a.active::before {
  content: '';
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 7px var(--orange);
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1);  }
  50%       { opacity: 0.4; transform: translateX(-50%) scale(0.6); }
}

/* ── HOVER TOOLTIP ────────────────────────────────────────────────────────── */
.nav-links li { position: relative; }

.nav-tip {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: rgba(15, 15, 15, 0.96);
  border: 1px solid rgba(255, 106, 0, 0.22);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  color: var(--nav-muted);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
/* Arrow */
.nav-tip::before {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top: none;
  border-bottom-color: rgba(255, 106, 0, 0.22);
}
.nav-links li:hover .nav-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── CTA BUTTON ───────────────────────────────────────────────────────────── */
.nav-cta {
  background: var(--orange) !important;
  color: #fff !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase;
  font-size: 0.71rem !important;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  overflow: hidden;
  position: relative;
  transition: background 0.2s, transform 0.2s var(--spring), box-shadow 0.2s !important;
}
.nav-cta::before,
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: #ff7a1a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 26px rgba(255, 106, 0, 0.38) !important;
  color: #fff !important;
}

/* Shimmer sweep on hover */
.cta-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.4s var(--ease);
  pointer-events: none;
}
.nav-cta:hover .cta-shimmer { left: 160%; }

/* ── HAMBURGER ────────────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(255, 255, 255, 0.06); }

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--nav-text);
  transition: width 0.3s var(--ease),
              transform 0.35s var(--spring),
              opacity 0.2s;
  transform-origin: center;
}
.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 15px; }
.hamburger span:nth-child(3) { width: 22px; }
.hamburger:hover span        { width: 22px !important; }

/* Open state — animates to ✕ */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE OVERLAY MENU ──────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7, 7, 7, 0.97);
  backdrop-filter: blur(26px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Orange crosshatch grid */
  background-image:
    repeating-linear-gradient(90deg, rgba(255,106,0,0.022) 0, rgba(255,106,0,0.022) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg,  rgba(255,106,0,0.022) 0, rgba(255,106,0,0.022) 1px, transparent 1px, transparent 80px);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-brand {
  position: absolute;
  top: 1.6rem; left: 2rem;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--nav-muted);
  letter-spacing: 0.04em;
}
.mobile-brand b { color: var(--orange); }

.mobile-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--nav-text);
  font-size: 1rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.3s var(--spring), border-color 0.2s;
}
.mobile-close:hover {
  background: rgba(255, 106, 0, 0.15);
  border-color: rgba(255, 106, 0, 0.35);
  transform: rotate(90deg);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  width: 100%;
  padding: 0 2rem;
}
.mobile-menu nav a {
  display: block;
  width: 100%; max-width: 360px;
  text-align: center;
  padding: 0.9rem 1.5rem;
  font-family: 'Syne', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--nav-muted);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  position: relative;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.25s var(--spring);
}
.mobile-menu nav a:hover {
  color: var(--nav-text);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(8px);
}
.mobile-menu nav a.active {
  color: var(--orange);
  background: rgba(255, 106, 0, 0.08);
  border-color: rgba(255, 106, 0, 0.2);
}
.mobile-menu nav a.active::before {
  content: '▶';
  position: absolute;
  left: 1.5rem; top: 50%;
  transform: translateY(-50%);
  font-size: 0.45rem;
  color: var(--orange);
}

/* Staggered slide-in when menu opens */
.mobile-menu.open nav a {
  animation: mobileSlideIn 0.4s var(--ease) both;
}
@keyframes mobileSlideIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE BREAKPOINTS ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-links a { font-size: 0.73rem; padding: 0.38rem 0.52rem; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
