/* Grads Paths — Global Design. Clean, premium, minimal. StudentGuided-inspired. No italics. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* Color scheme: Graduate Guidance — deep indigo to pink gradient */
:root {
  --bg: #faf5ff;          /* Light purple background */
  --surface: #f3e8ff;     /* Slightly darker purple surface */
  --text-main: #1e0d4d;   /* Deep indigo for main text */
  --text-muted: #5B30E5;  /* Indigo accent for muted text */
  --border: #e9d5ff;      /* Light purple border */
  --primary: #5B30E5;     /* Deep indigo (gradient start) */
  --secondary: #FE5673;   /* Pinkish-purple (gradient end) */
  --accent: #8C5FE2;      /* Vibrant purple (Done Right) */
  --white-soft: #faf5ff;
}
.dark {
  --bg: #0f0720;          /* Very dark purple bg */
  --surface: #1a1033;     /* Dark purple surface */
  --text-main: #f3e8ff;   /* Light purple for text */
  --text-muted: #c4b5fd;  /* Muted light purple */
  --border: #4c1d95;      /* Dark purple border */
  --primary: #8E5EDE;     /* Medium purple */
  --secondary: #FE5673;   /* Pinkish-purple */
  --accent: #8C5FE2;      /* Vibrant purple */
}

* {
  font-style: normal;
}
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 500;
  background-color: var(--bg);
  color: var(--text-main);
  overflow-x: hidden;
  transition:
    background-color 0.3s,
    color 0.3s;
  overflow-x: hidden;
}
img,
video {
  max-width: 100%;
  height: auto;
}
body .font-display,
body .font-serif {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.glass {
  background: rgba(245, 244, 243, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.dark .glass {
  background: rgba(14, 12, 20, 0.92);
  border-bottom-color: var(--border);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
  background-clip: text;
}

/* Header nav underline hover (theme-aware) */
.nav-underline {
  position: relative;
  padding-bottom: 8px;
}
.nav-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  width: 0%;
  margin: 0 auto;
  background: var(--primary);
  border-radius: 999px;
  transition: width 180ms ease;
  opacity: 0.9;
}
.nav-underline:hover::after,
.nav-underline:focus-visible::after {
  width: 100%;
}
.dark .nav-underline::after {
  background: var(--text-main);
  opacity: 0.8;
}

/* Hero: white on first page (light), same dark bg in dark */
.hero-section-bg {
  background-color: #ffffff;
}
.dark .hero-section-bg {
  background-color: var(--bg);
}

/* Section alternation: light = white, lavender, white... matching hero palette */
.page-section-1 { background-color: #ffffff; }
.page-section-2 { background-color: #f5efff; }
.page-section-3 { background-color: #ffffff; }
.page-section-4 { background-color: #f5efff; }
.page-section-5 { background-color: #ffffff; }
.page-section-6 { background-color: #f5efff; }
.page-section-7 { background-color: #ffffff; }

/* Programs on Grads Paths: white background, purple chart/blocks */
.programs-chart-section {
  background-color: #ffffff;
}
.dark .programs-chart-section {
  background-color: var(--bg);
}

/* Programs bar chart: axes, grid, outlined bars */
.programs-bar-chart {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 32px;
}
.chart-y-axis {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  padding: 0;
  gap: 8px;
}
.y-axis-label {
  writing-mode: vertical-rl;
  transform: rotate(-180deg);
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.y-ticks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 180px;
  font-size: 0.7rem;
  color: #6b7280;
  text-align: right;
}
.dark .y-axis-label { color: var(--text-main); }
.dark .y-ticks,
.dark .y-ticks span { color: var(--text-main); }
.chart-bars-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
  height: 180px;
}
.chart-grid {
  position: absolute;
  top: 0.35rem;
  left: 0;
  right: 0;
  height: calc(180px - 0.7rem);
  pointer-events: none;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background-image: 
    linear-gradient(to bottom, transparent calc(33.333% - 1px), #e5e7eb calc(33.333% - 1px), #e5e7eb 33.333%, transparent 33.333%),
    linear-gradient(to bottom, transparent calc(66.666% - 1px), #e5e7eb calc(66.666% - 1px), #e5e7eb 66.666%, transparent 66.666%);
}
.chart-bars {
  position: absolute;
  top: 0.35rem;
  left: 0;
  right: 0;
  height: calc(180px - 0.7rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 8px;
  padding: 0 8px;
}
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
  max-width: 72px;
  position: relative;
  height: 100%;
}
.bar-value {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.dark .bar-value {
  color: var(--text-main);
}
.bar-value-dash {
  font-weight: 400;
  color: #9ca3af;
}
.dark .bar-value-dash {
  color: var(--text-muted);
}
.bar-area {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}
.bar {
  width: 100%;
  max-width: 48px;
  border-radius: 4px 4px 0 0;
  min-height: 8px;
}
.bar-outline {
  background: transparent !important;
  border-width: 2px;
  border-style: solid;
}
.bar-blue { border-color: #3b82f6; }
.bar-pink { border-color: #ec4899; }
.bar-purple { border-color: #7c3aed; }
.bar-therapy { border-color: #a78bfa; }
.bar-nursing { border-color: #6366f1; }
.bar-accounting { border-color: #34d399; }
.bar-coming-soon {
  border: 2px dashed #9ca3af;
  background: transparent !important;
}
.bar-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  color: #374151;
  margin-top: 12px;
  text-align: center;
  width: 140%;
}
.dark .bar-label {
  color: var(--text-main);
}
.dark .chart-x-label {
  color: var(--text-main);
}
.dark .chart-grid {
  border-color: rgba(255, 255, 255, 0.15);
  background-image:
    linear-gradient(to bottom, transparent calc(33.333% - 1px), rgba(255, 255, 255, 0.15) calc(33.333% - 1px), rgba(255, 255, 255, 0.15) 33.333%, transparent 33.333%),
    linear-gradient(to bottom, transparent calc(66.666% - 1px), rgba(255, 255, 255, 0.15) calc(66.666% - 1px), rgba(255, 255, 255, 0.15) 66.666%, transparent 66.666%);
}
@media (max-width: 640px) {
  .y-ticks, .chart-bars-wrap { height: 160px; }
  .chart-grid, .chart-bars { height: calc(160px - 0.7rem); }
  .bar-label { font-size: 0.65rem; }
}
.page-section-8 { background-color: #f5f0ff; }
.page-section-9 { background-color: #ffffff; }
.page-section-10 { background-color: #f5f0ff; }
.page-section-11 { background-color: #ffffff; }
.page-section-12 { background-color: #f5f0ff; }

.dark .page-section-1,
.dark .page-section-2,
.dark .page-section-3,
.dark .page-section-4,
.dark .page-section-5,
.dark .page-section-6,
.dark .page-section-7,
.dark .page-section-8,
.dark .page-section-9,
.dark .page-section-10,
.dark .page-section-11,
.dark .page-section-12 {
  background-color: var(--bg);
}

/* Section alternation for visual separation (legacy) */
.section-alt {
  background-color: var(--surface);
}
.dark .section-alt {
  background-color: var(--bg);
}

/* Page 3 How it Works: purple tint so sections are clearly different */
.section-lavender {
  background-color: #f5f0ff;
}
.dark .section-lavender {
  background-color: var(--bg);
}

@keyframes gpGradShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.animate-gradient-text {
  background-size: 200% 200%;
  animation: gpGradShift 6s ease infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.animate-scroll {
  animation: scroll 10s linear infinite;
}
.hover-pause:hover .animate-scroll {
  animation-play-state: paused;
}

@keyframes gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.animate-gradient {
  animation: gradient 6s ease infinite;
}

/* Hide scrollbar for logo belt / horizontal scroll areas on touch */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 20px;
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.12);
}

/* Modal backdrop */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.dark .modal-backdrop {
  background: rgba(0, 0, 0, 0.7);
}

/* Login / Signup modal panel: background synced with site theme (light or dark), identical look */
.login-modal-panel,
.signup-modal-panel {
  background-color: var(--surface);
  border-color: var(--border);
}
.signup-modal-content {
  background: transparent;
}
.login-close-btn {
  color: var(--text-muted);
}
.login-close-btn:hover {
  color: var(--text-main);
  background-color: var(--border);
}

/* Password toggle */
.password-toggle {
  cursor: pointer;
  user-select: none;
}

/* Modal: input with icon on the right */
.modal-input-wrap {
  position: relative;
}
.modal-input-wrap .input-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.875rem;
}
.modal-input-wrap.has-toggle .input-icon {
  right: 2.5rem;
}
.modal-input-wrap input {
  padding-right: 2.5rem;
}
.modal-input-wrap.has-toggle input {
  padding-right: 3.25rem;
}

/* Signup: step indicator (visible when Mentor selected) */
.signup-steps {
  display: flex;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.signup-step {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg);
  transition: color 0.2s, background 0.2s;
}
.signup-step.active {
  color: white;
  background: var(--primary);
}
.signup-step:not(:last-child) {
  border-right: 1px solid var(--border);
}
.signup-step.active + .signup-step {
  border-left-color: transparent;
}

/* Signup: role buttons (large, with icon) */
.signup-role-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.signup-role-btn {
  flex: 1;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.signup-role-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.signup-role-btn.selected {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
}
.dark .signup-role-btn.selected {
  background: rgba(167, 139, 250, 0.12);
}
.signup-role-btn .fa-lg {
  font-size: 1.1rem;
}

/* Footer — StudentGuided-style: dark navy, white/light text, no dependency on theme */
.site-footer {
  background: #192534;
  color: #e2e8f0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.site-footer a {
  color: #e2e8f0;
  text-decoration: none;
  transition: opacity 0.2s;
}
.site-footer a:hover {
  opacity: 0.9;
}
.site-footer .footer-brand {
  color: #71a4f4;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.site-footer .footer-tagline {
  color: rgba(226, 232, 240, 0.95);
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 42rem;
}
.site-footer .footer-col-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.site-footer .footer-col a {
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.9);
  display: block;
  padding: 0.2rem 0;
}
.site-footer .footer-col a:hover {
  color: #71a4f4;
}
.site-footer .footer-socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer .footer-socials a {
  color: #e2e8f0;
  font-size: 1.125rem;
  opacity: 0.9;
}
.site-footer .footer-socials a:hover {
  opacity: 1;
  color: #71a4f4;
}
.site-footer .footer-bottom {
  border-top: 1px solid #3b4656;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.8125rem;
}
.site-footer .footer-bottom a {
  color: rgba(226, 232, 240, 0.9);
}
.site-footer .footer-bottom .footer-credit {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.75rem;
}
