/* THEME COLORS */
:root{
  --accent:#7a39ff;
  --text-dark:#1b1b1b;
  --glass-bg:rgba(255,255,255,0.25);
}

/* GLOBAL */
body{
  margin:0;
  font-family:"Poppins",sans-serif;
  color:var(--text-dark);
  overflow-x:hidden;
}

/* HEADER */
header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:72px;
  background:var(--glass-bg);
  backdrop-filter:blur(20px) saturate(140%);
  -webkit-backdrop-filter:blur(20px) saturate(140%);
  border-bottom:1px solid rgba(255,255,255,0.45);
  z-index:1000;
  display:flex;
  align-items:center;
  transition:all .3s ease;
}

header.scrolled{
  background:rgba(255,255,255,0.95);
  box-shadow:0 8px 30px rgba(0,0,0,0.12);
}

/* NAVBAR */
.navbar{
  width:100%;
  max-width:1300px;
  margin:auto;
  padding:0 6%;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* LOGO */
.logo{
  display:flex;
  align-items:center;
}
.logo img{
  height:62px;
  width:auto;
  border-radius:12px;
  padding:4px;
}

/* NAV LINKS (DESKTOP) */
.nav-links{
  display:flex;
  align-items:center;
  gap:6px;
  list-style:none;
  margin:0;
  padding:0;
}

.nav-links li a{
  text-decoration:none;
  padding:10px 16px;
  font-weight:600;
  font-size:.95rem;
  color:#222;
  position:relative;
  border-radius:999px;
  transition:color .25s ease, background .25s ease;
}

/* underline only */
.nav-links li a::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-6px;
  width:0%;
  height:2px;
  background:var(--accent);
  transform:translateX(-50%);
  transition:.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after{
  width:60%;
}

.nav-links li a:hover{
  color:var(--accent);
}

.nav-links li a.active{
  background:rgba(122,57,255,0.08);
  color:var(--accent);
}

/* DESKTOP CTA */
.desktop-cta{
  display:flex;
  align-items:center;
  gap:12px;
}

.header-phone{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 18px;
  font-weight:700;
  font-size:.95rem;
  color:#4c1eff;
  border-radius:999px;
  background:rgba(122,57,255,0.12);
  border:1px solid rgba(122,57,255,0.25);
  backdrop-filter:blur(10px);
  text-decoration:none;
  transition:.25s ease;
}

.header-phone:hover{
  background:rgba(122,57,255,0.2);
  box-shadow:0 8px 24px rgba(122,57,255,0.25);
  transform:translateY(-2px);
}

/* HAMBURGER */
.hamburger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:42px;
  height:42px;
  border:none;
  background:none;
  cursor:pointer;
}

.hamburger span{
  width:26px;
  height:3px;
  background:#222;
  border-radius:4px;
  transition:.3s ease;
}

.hamburger.active span:nth-child(1){
  transform:rotate(45deg) translateY(8px);
}
.hamburger.active span:nth-child(2){
  opacity:0;
}
.hamburger.active span:nth-child(3){
  transform:rotate(-45deg) translateY(-8px);
}



/* MOBILE */
@media (max-width:900px){

  header{
    height:64px;
  }

  .logo img{
    height:64px;
  }

  .desktop-cta{
    display:none;
  }

  .hamburger{
    display:flex;
  }

  .nav-links{
    position:fixed;
    top:72px;
    left:50%;
    transform:translateX(-50%) translateY(-12px);
    width:92%;
    flex-direction:column;
    background:rgba(255,255,255,0.92);
    backdrop-filter:blur(22px);
    border-radius:20px;
    padding:12px 0;
    box-shadow:0 30px 70px rgba(0,0,0,0.25);
    opacity:0;
    pointer-events:none;
    transition:opacity .35s ease, transform .35s ease;
    z-index:10000;
  }

  .nav-links.active{
    opacity:1;
    pointer-events:auto;
    transform:translateX(-50%) translateY(0);
  }

  .nav-links li{
    width:100%;
  }

  .nav-links li a{
    width:100%;
    padding:16px;
    text-align:center;
    font-size:1rem;
    border-bottom:1px solid #eee;
    color:#2a2a2a;
    font-weight:600;
  }

  .nav-links li:last-child a{
    border-bottom:none;
  }

  .nav-links li a::after{
    display:none !important;
  }

  .nav-links li a.active{
    background:rgba(122,57,255,0.08);
    color:var(--accent);
  }
}

/* PAGE OFFSET */
body::before{
  content:"";
  display:block;
  height:72px;
}
@media (max-width:900px){
  body::before{
    height:64px;
  }
}

/* when menu open, just prevent background scroll */
body.menu-open{
  overflow:hidden;
}
