/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background-color: rgba(243, 236, 223, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 17, 15, 0.07);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(243, 236, 223, 0.96);
  box-shadow: 0 1px 20px rgba(20, 17, 15, 0.06);
}

.header-container {
  width: 100%;
  padding: 0 2rem;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand {
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

/* AceIIIT Logo Typography */
@keyframes text-glaze {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.aceiiit-logo {
  font-family: var(--font-display);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.04em;
}

.logo-ace {
  background: linear-gradient(110deg, var(--ink) 30%, #857a69 50%, var(--ink) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-glaze 3s linear infinite;
}

.logo-iiit {
  position: relative;
  background: linear-gradient(110deg, var(--gold) 30%, #ffffff 50%, var(--gold) 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-glaze 3s linear infinite;
}

.logo-arrow {
  position: absolute;
  top: -0.55em;
  right: -0.4em;
  width: 0.8em;
  height: 0.8em;
}

#seq-ready .logo-arrow {
  top: -0.65em;
  right: -0.6em;
}

.nav-brand .logo-arrow {
  top: -0.6em;
  right: -0.8em;
  width: 0.9em;
  height: 0.9em;
}

.logo-arrow .arrow-part-1 {
  opacity: 0;
  animation: arrow-assemble-1 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.4s;
  transform-origin: center;
}

.logo-arrow .arrow-part-2 {
  opacity: 0;
  animation: arrow-assemble-2 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.5s;
  transform-origin: center;
}

.logo-arrow .arrow-part-3 {
  opacity: 0;
  animation: arrow-assemble-3 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.6s;
  transform-origin: center;
}

@keyframes arrow-assemble-1 {
  0% {
    transform: translate(-30px, 30px);
    opacity: 0;
  }

  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes arrow-assemble-2 {
  0% {
    transform: translate(30px, 30px);
    opacity: 0;
  }

  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes arrow-assemble-3 {
  0% {
    transform: translate(0, -30px);
    opacity: 0;
  }

  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

.nav-links {
  display: none;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Login — minimal text with animated underline reveal */
.nav-login {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  display: none;
  position: relative;
  padding-bottom: 1px;
}

.nav-login::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-login:hover {
  color: var(--ink);
}

.nav-login:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (min-width: 480px) {
  .nav-login {
    display: block;
  }
}

/* Buttons — base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.22rem 1rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: all 0.22s ease;
}

/* nav Get Started — AceIIIT color scheme (Gold/Black/Red) */
.site-header .btn-primary {
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%), linear-gradient(135deg, #dcae44 0%, #c5a028 100%);
  background-size: 400% 100%, 100% 100%;
  animation: button-glaze-sweep 6s linear infinite;
  color: #14110f;
  border: 1px solid rgba(20, 17, 15, 0.1);
  box-shadow: 0 0 10px rgba(220, 174, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-header .btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}

.site-header .btn-primary:hover {
  background: #14110f;
  color: #dcae44;
  border-color: #b42318;
  box-shadow: 0 6px 18px rgba(180, 35, 24, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.site-header .btn-primary:hover::before {
  transform: translateX(120%);
  background: linear-gradient(105deg, transparent 30%, rgba(180, 35, 24, 0.3) 50%, transparent 70%);
}

.site-header .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(180, 35, 24, 0.2);
}

/* Arrow animation for all premium buttons */
.btn-arrow {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover .btn-arrow,
.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background-color: rgba(20, 17, 15, 0.05);
}

/* Tags */
.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-xs);
  font-family: 'Space Mono', monospace;
  /* Keep a bit of the technical legacy */
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.5rem;
}