/* ============================================================
   FINAL HEADER.CSS (FIXED HEADER + UNIFIED DESIGN)
   Author: Yashpal Siravi
   Updated: Oct 2025
   ============================================================ */

/* ---------- ROOT VARIABLES ---------- */
:root {
  --accent-1: #00bcd4;
  --accent-2: #0097a7;
  --muted: #cfeff6;
  --header-height: 74px;
}

/* ---------- BASE HEADER ---------- */
.ujss-header {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--header-height);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease, height 0.3s ease;
  overflow: visible;
}

/* ---------- AURORA RIM EFFECT ---------- */
.ujss-aurora-rim {
  pointer-events: none;
  position: absolute;
  inset: -6px -6px auto -6px;
  height: calc(var(--header-height) + 12px);
  border-radius: 10px;
  z-index: 9998;
  background: conic-gradient(from 120deg,
    rgba(0, 188, 212, 0.12),
    rgba(255, 64, 129, 0.10),
    rgba(0, 188, 212, 0.08));
  filter: blur(18px) saturate(120%);
  opacity: 0.95;
  animation: rim-rotate 8s linear infinite;
  mix-blend-mode: screen;
}

@keyframes rim-rotate {
  from { transform: rotate(0deg) translateY(0); }
  to { transform: rotate(360deg) translateY(-2px); }
}

/* subtle glow pulse */
.ujss-aurora-rim::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
  background: linear-gradient(90deg,
    rgba(0, 188, 212, 0.06),
    rgba(255, 64, 129, 0.05));
  filter: blur(12px);
  animation: rim-pulse 3.5s ease-in-out infinite;
}

@keyframes rim-pulse {
  0%, 100% { opacity: 0.65; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* ---------- HEADER INNER ---------- */
.ujss-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 14px;
  position: relative;
  z-index: 1000;
}

/* ---------- BRAND ---------- */
.ujss-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.ujss-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 188, 212, 0.12);
  transition: transform 300ms ease;
}
.ujss-logo:hover {
  transform: translateY(-3px) rotate(6deg) scale(1.03);
}
.ujss-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.ujss-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-1);
  letter-spacing: 0.2px;
  text-shadow: 0 0 10px rgba(0, 188, 212, 0.08);
}
.ujss-sub {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.95;
}

/* ---------- CONTACT DESKTOP ---------- */
.ujss-contact-desktop {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ujss-contact-desktop a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
}
.ujss-phone {
  color: var(--muted);
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
}
.ujss-wa {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #001;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 800;
}
.ujss-cta {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #001;
  padding: 8px 12px;
  border-radius: 22px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0, 188, 212, 0.12);
}

/* ---------- NAVIGATION ---------- */
.ujss-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.ujss-nav ul li a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 6px;
  position: relative;
  transition: color .2s;
}
.ujss-nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width .25s;
}
.ujss-nav ul li a:hover {
  color: #fff;
}
.ujss-nav ul li a:hover::after {
  width: 100%;
}

/* ---------- HAMBURGER (MOBILE) ---------- */
.ujss-hamburger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.ujss-hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  border-radius: 3px;
  transition: transform .25s, opacity .25s;
}

/* ---------- MOBILE PANEL ---------- */
.ujss-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, rgba(0,0,0,0.96), rgba(0,0,0,0.92));
  z-index: 99998;
  transition: right .36s cubic-bezier(.2,.9,.2,1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.ujss-mobile[aria-hidden="false"] { right: 0; }
.ujss-mobile-inner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}
.ujss-mobile-close {
  align-self: flex-end;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 1.6rem;
  cursor: pointer;
}
.ujss-mobile-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.ujss-logo-sm {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.ujss-mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.ujss-mobile-nav ul li a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  width: 100%;
}
.ujss-mobile-cta {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #001;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
}
.ujss-mobile-contact {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
}
.ujss-mobile-contact a {
  color: var(--muted);
  text-decoration: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .ujss-nav { display: none; }
  .ujss-contact-desktop { display: none; }
  .ujss-hamburger { display: block; }
  .ujss-header { height: 64px; }
  .ujss-logo { width: 48px; height: 48px; }
  .ujss-title { font-size: 1rem; }
}

/* ---------- FOCUS ---------- */
.ujss-hamburger:focus,
.ujss-mobile-close:focus,
.ujss-nav a:focus,
.ujss-cta:focus {
  outline: 3px solid rgba(0,188,212,0.18);
  outline-offset: 3px;
}

/* subtle rim under header */
.ujss-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg,
    rgba(0,188,212,0.06),
    rgba(0,188,212,0.12));
  pointer-events: none;
  opacity: 0.9;
}

/* ---------- FIX: OVERLAP + GAP ---------- */
body {
  padding-top: var(--header-height, 74px) !important;
}
@media (max-width: 900px) {
  body {
    padding-top: 64px !important;
  }
}
body.home-page {
  padding-top: calc(var(--header-height, 74px) - 10px) !important;
}

/* ---------- SHRINK EFFECT ---------- */
.ujss-header.shrink {
  height: 60px !important;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.7));
  box-shadow: 0 8px 18px rgba(0,0,0,0.45);
}

/* Prevent content hiding behind header */
main, section, .content, .about-content {
  position: relative;
  z-index: 1;
}

/* Disable logo/text font jump */
.ujss-logo, .ujss-title, .ujss-sub {
  transition: none !important;
}

