/* ═══════════════════════════════════════════════════════════
   Smart Kootenays — Advanced Computing at Selkirk Innovates
   Dark tech-forward design
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:          #080d18;
  --bg-alt:      #0c1225;
  --card:        #0f1830;
  --card-border: rgba(56, 189, 248, 0.12);
  --accent:      #38bdf8;
  --text:        #e2e8f0;
  --muted:       #94a3b8;
  --font-body:   'Inter', sans-serif;
  --font-head:   'Space Grotesk', sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ─────────────────────────────────────────────── */
#mainNav {
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 1rem 0;
}

#mainNav.scrolled {
  background: rgba(8, 13, 24, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(56, 189, 248, 0.10);
  padding: 0.55rem 0;
}

.navbar-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.1;
  text-decoration: none;
}

.brand-icon {
  flex-shrink: 0;
  border-radius: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.62rem;
  color: var(--accent);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-link {
  color: #cbd5e1 !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem !important;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid rgba(56, 189, 248, 0.30) !important;
}

.nav-cta:hover {
  background: rgba(56, 189, 248, 0.10) !important;
  border-color: var(--accent) !important;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Blurred, color-graded background image */
.hero::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-image: url('img/server_rack_future.png');
  background-size: cover;
  background-position: center center;
  filter: blur(2px) brightness(0.55) saturate(1.3);
  z-index: 0;
}

/* Subtle gradient overlay — left darker for text legibility */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8,13,24,0.88) 0%,
    rgba(8,13,24,0.60) 50%,
    rgba(20,10,40,0.25) 100%
  );
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: 2;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.13) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: floatGlow 9s ease-in-out infinite;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.09) 0%, transparent 70%);
  bottom: 10%;
  left: -5%;
  animation: floatGlow 11s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-24px) scale(1.06); }
}

.hero > .container {
  position: relative;
  z-index: 3;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
}

/* Buttons */
.btn-accent {
  background: var(--accent);
  color: #071018;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}

.btn-accent:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.40);
  color: #071018;
}

.btn-outline-accent {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(56, 189, 248, 0.40);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.btn-outline-accent:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero badge stack */
.hero-badge-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 260px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.8rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.hero-badge i {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 2.5rem 0;
}

.stat-item {
  padding: 1rem 1.5rem;
  border-right: 1px solid var(--card-border);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.3rem;
}

/* ── Section Common ─────────────────────────────────────── */
.section { padding: 88px 0; }

.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Project Cards ──────────────────────────────────────── */
.project-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.project-card:hover {
  border-color: rgba(56, 189, 248, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--icon-color, #38bdf8) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--icon-color, #38bdf8) 22%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--icon-color, #38bdf8);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.project-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.15);
}

.project-partner {
  font-size: 0.77rem;
  color: #526070;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-link:hover {
  color: #fff;
}

/* ── Partners ────────────────────────────────────────────── */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.partner-chip {
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
  cursor: default;
}

.partner-chip:hover {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.30);
}

.funding-note {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.funding-note strong { color: var(--text); }

/* ── About ───────────────────────────────────────────────── */
.about-text {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.97rem;
}

.about-capabilities {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s;
}

.capability-item:hover {
  border-color: rgba(56, 189, 248, 0.22);
}

.capability-icon {
  font-size: 1.35rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.capability-title {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.capability-desc {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Team ────────────────────────────────────────────────── */
.team-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
  height: 100%;
  transition: border-color 0.25s, transform 0.25s;
}

.team-card-sm {
  padding: 1.4rem 1.25rem;
}

.team-card:hover {
  border-color: rgba(56, 189, 248, 0.28);
  transform: translateY(-3px);
}

.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--av-color) 14%, transparent);
  border: 2px solid color-mix(in srgb, var(--av-color) 30%, transparent);
  color: var(--av-color);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  letter-spacing: 0.05em;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-avatar-sm {
  width: 68px;
  height: 68px;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.team-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Past Members ────────────────────────────────────────── */
.past-members {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.past-members-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.past-members-sub {
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 1.5rem;
}

.past-members-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.past-chip {
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.contact-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto 2rem;
}

.contact-btn { font-size: 1rem; }

.contact-note {
  font-size: 0.85rem;
  color: #475569;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  padding: 1.75rem 0;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.footer-sub {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: #475569;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--card-border);
  }

  .stat-item:last-child { border-bottom: none; }

  .section { padding: 64px 0; }
}
