/* Shared theme for Gaurav & Parul — student portal */
:root {
  --bg: #0b1030;
  --card: rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(220, 228, 255, 0.72);
  --accent: #6a5cff;
  --accent-2: #3ad6ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Poppins, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* fixed animated background canvas (injected by network.js) */
#net {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 20px clamp(20px, 5vw, 56px);
  background: linear-gradient(180deg, rgba(11,16,48,0.55), rgba(11,16,48,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.brand, .menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.5vw, 34px);
}
.menu { justify-content: flex-end; }

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  padding: 10px 8px;
  text-shadow: 0 2px 20px rgba(0,10,40,0.5);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), letter-spacing 0.35s ease, color 0.3s ease;
}

.menu .nav-item {
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 600;
  color: rgba(226,232,255,0.9);
  padding: 8px 12px;
}

.nav-item .num { font-size: 0.72em; font-weight: 800; opacity: 0.8; }

.nav-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6a5cff, #3ad6ff, #6a5cff);
  background-size: 250% 100%;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  z-index: -1;
  box-shadow: 0 10px 30px rgba(106,92,255,0.5);
  animation: shift 6s linear infinite;
}
@keyframes shift { to { background-position: 250% 0; } }

.nav-item:hover { transform: translateY(-4px) scale(1.08); letter-spacing: 0.06em; }
.nav-item:hover::before { opacity: 1; transform: scale(1); }

/* current page highlight */
.menu .nav-item.active { color: #fff; }
.menu .nav-item.active::before { opacity: 0.9; transform: scale(1); }

/* header call-to-action button (sign in) */
.menu .nav-item.nav-cta {
  color: #fff;
  text-transform: none;
  background: linear-gradient(90deg, #6a5cff, #3ad6ff);
  background-size: 200% 100%;
  border-radius: 999px;
  padding: 9px 20px;
  box-shadow: 0 8px 24px rgba(106,92,255,0.45);
  animation: shift 6s linear infinite;
}
.menu .nav-item.nav-cta::before { display: none; }
.menu .nav-item.nav-cta:hover { transform: translateY(-3px) scale(1.06); letter-spacing: 0.02em; }

/* ---------- Page layout ---------- */
.page {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(120px, 18vh, 190px) clamp(20px, 5vw, 40px) 90px;
}

.hero { text-align: center; margin-bottom: clamp(40px, 7vw, 72px); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(38px, 8vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff, #e6e9ff 55%, #bfe6ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: clamp(15px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(106,92,255,0.6), rgba(58,214,255,0.35), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 60px rgba(20,20,70,0.5);
}
.card:hover::after { opacity: 1; }

.card .icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(106,92,255,0.35), rgba(58,214,255,0.25));
  border: 1px solid rgba(255,255,255,0.12);
}
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--muted);
}
.badge.accent { background: linear-gradient(90deg, rgba(106,92,255,0.5), rgba(58,214,255,0.4)); color: #fff; border-color: transparent; }

.card .go {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card:hover .go .arrow { transform: translateX(4px); }
.card .go .arrow { transition: transform 0.3s ease; }

/* poll option buttons */
.poll-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.poll-opt {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.poll-opt:hover { background: rgba(106,92,255,0.28); border-color: rgba(106,92,255,0.6); transform: translateX(3px); }

/* ---------- Auth (sign in / sign up) ---------- */
.auth-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 34px clamp(24px, 5vw, 40px) 34px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(8, 10, 40, 0.55);
}

.auth-card h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
}
.auth-card .sub {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 8px;
  margin-bottom: 24px;
}


.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.field input,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.field input::placeholder { color: rgba(220,228,255,0.4); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(106,92,255,0.8);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(106,92,255,0.2);
}
.field select option { color: #111; }

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.row-between label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.row-between a { color: var(--accent-2); text-decoration: none; }
.row-between a:hover { text-decoration: underline; }

.btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #6a5cff, #3ad6ff);
  background-size: 200% 100%;
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(106,92,255,0.45);
  transition: transform 0.2s ease, background-position 0.5s ease;
  animation: shift 6s linear infinite;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.auth-alt {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}
.auth-alt a { color: var(--accent-2); text-decoration: none; font-weight: 700; cursor: pointer; }
.auth-alt a:hover { text-decoration: underline; }

.auth-note {
  margin-top: 18px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(58,214,255,0.08);
  border: 1px solid rgba(58,214,255,0.2);
  color: rgba(220,240,255,0.85);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

/* Google sign-in + divider */

#g-btn-container { display: flex; justify-content: center; }
#g-btn-container:empty { display: none; }


.hidden { display: none; }

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px 48px;
  color: var(--muted);
  font-size: 13.5px;
}
footer a { color: var(--accent-2); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.soon {
  position: relative; z-index: 2;
  max-width: 1100px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(220,228,255,0.5);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-item, .nav-item::before, .card, .card .go .arrow { transition: none; animation: none; }
}
