/* Vectron Robotics - FTC Team 17873 */
/* Dark theme - black base with cyan/blue accents */

:root {
  --primary: #000080;
  --primary-light: #1a1a9e;
  --primary-dark: #000066;
  --primary-text: #8b8bff;
  --primary-glow: rgba(0, 0, 128, 0.4);
  --accent: #4a4aff;
  --accent-dim: rgba(0, 0, 128, 0.15);
  --bg: #000000;
  --bg-card: #0a0a0f;
  --bg-section: #000000;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.06);
  --glow: rgba(0, 0, 128, 0.4);
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 32px rgba(0, 0, 128, 0.3);
}

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

/* Skeleton loaders */
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  border-radius: inherit;
}

.skeleton-block {
  background: rgba(255, 255, 255, 0.06);
}

/* Image loading skeleton */
.img-skeleton-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.img-skeleton-wrap .skeleton-img-placeholder {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  z-index: 1;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.img-skeleton-wrap .skeleton-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
}
.img-skeleton-wrap img {
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.team-group-photo .img-skeleton-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.team-group-photo .img-skeleton-wrap img,
.team-card-inner .img-skeleton-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card-inner .img-skeleton-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.img-skeleton-wrap.loaded .skeleton-img-placeholder {
  opacity: 0;
  pointer-events: none;
}
.img-skeleton-wrap.loaded img {
  opacity: 1;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000000;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Global page background - extends with page so elements appear in different sections */
.page-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background: #000000;
  overflow: hidden;
}

.page-bg-glow {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 0, 128, 0.28) 0%, rgba(0, 0, 128, 0.08) 40%, transparent 70%);
  will-change: transform;
}

.page-bg-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

/* Elements placed at % of full page height - visible in different sections as you scroll */
.page-bg-orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 0, 128, 0.35) 0%, transparent 65%);
  top: 12%;
  right: 5%;
}

.page-bg-orb-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(74, 74, 255, 0.3) 0%, transparent 65%);
  top: 32%;
  left: 3%;
}

.page-bg-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 0, 128, 0.25) 0%, transparent 70%);
  top: 52%;
  right: 8%;
}

.page-bg-orb-4 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(74, 74, 255, 0.22) 0%, transparent 60%);
  top: 72%;
  left: 12%;
}

.page-bg-geo {
  position: absolute;
  will-change: transform;
}

.page-bg-diamond {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(0, 0, 128, 0.22), rgba(74, 74, 255, 0.1));
  border: 2px solid rgba(0, 0, 128, 0.4);
  top: 22%;
  left: 8%;
}

.page-bg-ring {
  width: 150px;
  height: 150px;
  border: 2px solid rgba(0, 0, 128, 0.35);
  border-radius: 50%;
  background: transparent;
  top: 42%;
  right: 18%;
}

.page-bg-square {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(74, 74, 255, 0.4);
  background: rgba(74, 74, 255, 0.05);
  top: 62%;
  right: 5%;
}

.page-bg-circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 128, 0.35);
  background: transparent;
  top: 82%;
  left: 6%;
}

.page-bg-doodle {
  position: absolute;
  width: 90px;
  height: 36px;
  color: rgba(0, 0, 128, 0.35);
  top: 92%;
  left: 65%;
  will-change: transform;
}

.page-bg-doodle svg {
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav.scrolled .nav-links a {
  color: var(--text-muted);
}

.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active {
  color: var(--primary-text);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.9;
}

.nav-logo-img {
  height: 34px;
  width: 34px;
  object-fit: contain;
}

.logo-team {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--primary-text);
}

.logo-num {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-text);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-links a.active {
  color: var(--primary-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
  background: rgba(0, 0, 128, 0.15);
  border-color: rgba(0, 0, 128, 0.4);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 2rem 4rem;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  will-change: transform;
  perspective: 800px;
  transform-style: preserve-3d;
}

.hero-logo {
  width: 160px;
  height: 160px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 24px rgba(0, 0, 128, 0.4));
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: visible;
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-title-main {
  font-size: clamp(2.75rem, 10vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
}

.hero-title-sub {
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--primary-text);
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-cta-socials,
.hero-cta-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta-links .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-cta-links .btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.08);
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-hover), 0 0 20px rgba(0, 0, 128, 0.5);
}

.btn-outline {
  background: rgba(0, 0, 128, 0.15);
  color: #e0e0ff;
  border: 1px solid rgba(0, 0, 128, 0.6);
}

.btn-outline:hover {
  background: rgba(0, 0, 128, 0.25);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 128, 0.3);
}

/* Parallax layers */
.parallax-slow {
  will-change: transform;
}

/* Parallax cards: no transition on transform so scroll-driven updates apply immediately */
.stat-card.parallax-card,
.comp-card.parallax-card {
  transition: box-shadow 0.3s, border-color 0.2s, background 0.2s;
}

.parallax-section {
  position: relative;
  will-change: transform;
}

/* Hero entrance animation */
.hero-content {
  --hero-reveal-done: 0;
}
.hero-content .hero-meta,
.hero-content .hero-title,
.hero-content .hero-tagline,
.hero-content .hero-cta .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-reveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero-content .hero-logo {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-reveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}
.hero-content .hero-meta { animation-delay: 0.2s; }
.hero-content .hero-title { animation-delay: 0.3s; }
.hero-content .hero-tagline { animation-delay: 0.45s; }
.hero-content .hero-cta .btn { animation-delay: 0.6s; animation-fill-mode: both; }
.hero-content .hero-cta-socials .btn:nth-child(1) { animation-delay: 0.55s; }
.hero-content .hero-cta-socials .btn:nth-child(2) { animation-delay: 0.6s; }
.hero-content .hero-cta-socials .btn:nth-child(3) { animation-delay: 0.65s; }
.hero-content .hero-cta-socials .btn:nth-child(4) { animation-delay: 0.7s; }
.hero-content .hero-cta-links .btn:nth-child(1) { animation-delay: 0.75s; }
.hero-content .hero-cta-links .btn:nth-child(2) { animation-delay: 0.8s; }
.hero-content .hero-cta-links .btn:nth-child(3) { animation-delay: 0.85s; }
.hero-content .hero-cta-links .btn:nth-child(4) { animation-delay: 0.9s; }
@keyframes hero-reveal {
  to { opacity: 1; transform: translateY(0); }
}
/* Section header scroll reveal - skeleton until revealed */
.section-header {
  position: relative;
  min-height: 5rem;
}
.section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 1.5rem;
  width: 6rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.section-header::after {
  content: '';
  position: absolute;
  top: 2rem;
  left: 0;
  height: 2rem;
  width: 80%;
  max-width: 20rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.section-header .section-tag,
.section-header .section-title,
.section-header .section-desc,
.section-header .about-tagline,
.section-header .meet-team-desc {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.section-header.revealed::before,
.section-header.revealed::after { opacity: 0; pointer-events: none; }
.section-header.revealed .section-tag,
.section-header.revealed .section-title,
.section-header.revealed .section-desc,
.section-header.revealed .about-tagline,
.section-header.revealed .meet-team-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Stat card scroll reveal - skeleton until revealed */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: inherit;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  border-radius: inherit;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.stat-card > * {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.stat-card.revealed::before,
.stat-card.revealed::after { opacity: 0; pointer-events: none; }
.stat-card.revealed > * { opacity: 1; }
.stat-card:nth-child(1).revealed > * { transition-delay: 0ms; }
.stat-card:nth-child(2).revealed > * { transition-delay: 80ms; }
.stat-card:nth-child(3).revealed > * { transition-delay: 160ms; }
.stat-card:nth-child(4).revealed > * { transition-delay: 240ms; }

/* Comp card scroll reveal - skeleton until revealed */
.comp-card {
  position: relative;
  overflow: hidden;
}
.comp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: inherit;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.comp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  border-radius: inherit;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.comp-card > * {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.comp-card.revealed::before,
.comp-card.revealed::after { opacity: 0; pointer-events: none; }
.comp-card.revealed > * { opacity: 1; }
.comp-card:nth-child(1).revealed > * { transition-delay: 0ms; }
.comp-card:nth-child(2).revealed > * { transition-delay: 70ms; }
.comp-card:nth-child(3).revealed > * { transition-delay: 140ms; }
.comp-card:nth-child(4).revealed > * { transition-delay: 210ms; }

/* Sponsor card - skeleton until revealed */
.sponsor-card {
  position: relative;
  overflow: hidden;
}
.sponsor-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: inherit;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.sponsor-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  border-radius: inherit;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.sponsor-card > * {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sponsor-card.revealed::before,
.sponsor-card.revealed::after { opacity: 0; pointer-events: none; }
.sponsor-card.revealed > * { opacity: 1; }
.sponsor-card:nth-child(1).revealed > * { transition-delay: 0ms; }
.sponsor-card:nth-child(2).revealed > * { transition-delay: 70ms; }
.sponsor-card:nth-child(3).revealed > * { transition-delay: 140ms; }
.sponsor-card:nth-child(4).revealed > * { transition-delay: 210ms; }

/* Orbs & geo shapes float via JS parallax */

/* Cursor tilt - 3D perspective on hover */
.cursor-tilt {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.15s ease-out, box-shadow 0.3s;
}
.cursor-tilt .tilt-inner {
  transform: translateZ(20px);
}

/* Scroll indicator - bounce via JS */

/* Robot viewer - skeleton until revealed */
.robot-viewer {
  position: relative;
  min-height: 320px;
}
.robot-viewer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid var(--border);
  z-index: 0;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.robot-viewer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  border-radius: 12px;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.robot-viewer > * {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.2s, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}
.robot-viewer.revealed::before,
.robot-viewer.revealed::after { opacity: 0; pointer-events: none; }
.robot-viewer.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* About content reveal - skeleton until revealed */
.about-content,
.about-school-link {
  position: relative;
}
.about-content::before,
.about-school-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 1.25rem;
  width: 10rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  border-radius: 4px;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.about-school-link::before { height: 3rem; width: 3rem; top: 0; }
.about-content > *,
.about-school-link > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-school-link > * { transition-delay: 0.1s; }
.about-content.revealed::before,
.about-school-link.revealed::before { opacity: 0; pointer-events: none; }
.about-content.revealed > *,
.about-school-link.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* About team intro reveal - skeleton until revealed */
.about-team-intro .team-lead {
  position: relative;
}
.about-team-intro .team-lead::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  border-radius: 4px;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.about-team-intro .team-lead {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-team-intro .team-lead.revealed::before { opacity: 0; pointer-events: none; }
.about-team-intro .team-lead.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Contact links - skeleton until revealed */
.social-link {
  position: relative;
}
.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: inherit;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.social-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  border-radius: inherit;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.social-link svg,
.social-link span {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(15px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.social-link.revealed::before,
.social-link.revealed::after { opacity: 0; pointer-events: none; }
.social-link.revealed svg,
.social-link.revealed span {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--primary-text);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.section-desc code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: rgba(0, 0, 128, 0.2);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 128, 0.4);
}

/* About */
.about {
  background: transparent;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about .container {
  position: relative;
  z-index: 1;
}

.about-layout {
  margin-top: 2rem;
}

.about-school-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}

.about-school-link:hover {
  color: var(--primary-text);
}

.about-school-link img {
  height: 96px;
  width: auto;
  object-fit: contain;
}

.about-school-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about-school-name em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 0.25rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
}

.about-lead strong {
  color: var(--primary-text);
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-meta-item {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: block;
}

.about-meta-item strong {
  color: var(--primary-text);
  font-weight: 600;
  margin-right: 0.5rem;
}

.about-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 400;
}

.about-team-hero {
  margin: 3rem 0 2rem;
}

.about-team-intro {
  margin-bottom: 2rem;
}

.about-team-intro .team-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 700px;
}

/* Meet the team section */
.meet-team .section-header {
  text-align: center;
}

.meet-team-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.meet-team .team-departments {
  margin-top: 2.5rem;
}

/* Team section */
.team {
  background: transparent;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.team .container {
  position: relative;
  z-index: 1;
}

.team .section-header {
  text-align: center;
}

.team .section-tag {
  display: block;
}

.team .section-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.team-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 400;
}

/* Team hero: group photo + school logo */
.team-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.team-group-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  transition: box-shadow 0.4s;
}
.team-group-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.team-group-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.team-group-photo img {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.team-group-photo.revealed::before,
.team-group-photo.revealed::after { opacity: 0; pointer-events: none; }
.team-group-photo.revealed img {
  opacity: 1;
  transform: translateY(0);
}

.team-parallax .team-group-photo {
  will-change: transform;
}

.team-group-photo:hover,
.team-group-photo.revealed:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 0, 128, 0.15);
}

.team-group-photo img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.team-group-photo:hover img,
.team-group-photo.revealed:hover img {
  transform: scale(1.05);
}

.team-school-badge {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-school-badge.revealed {
  opacity: 1;
  transform: translateY(0);
}

.team-school-badge a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}

.team-school-badge a:hover {
  color: var(--primary-text);
}

.team-school-badge img {
  height: 96px;
  width: auto;
  object-fit: contain;
}

.team-school-badge span {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.team-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.team-intro-text {
  max-width: 560px;
}

.team-intro-text .team-lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.team-intro-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.team-intro-text strong {
  color: var(--primary-text);
}

.team-highlight {
  padding: 1.5rem 2rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 128, 0.4);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 0, 128, 0.12) 0%, rgba(74, 74, 255, 0.06) 100%);
  min-width: 200px;
}

.team-highlight-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-text);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.team-highlight-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.team-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.team-divider::before,
.team-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 128, 0.3), transparent);
}

.team-divider span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-text);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Team departments */
.team-departments {
  margin-bottom: 2.5rem;
}

.team-dept {
  margin-bottom: 2.5rem;
}

.team-dept:last-child {
  margin-bottom: 0;
}

.team-dept-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-text);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

.team-dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* Meet the team - enhanced cards */
.team-photo-wrap.team-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: visible;
  will-change: transform;
  transition: box-shadow 0.4s, transform 0.5s;
  transform: translateY(24px);
}

.team-photo-wrap.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(74, 74, 255, 0.5), rgba(0, 0, 128, 0.2), rgba(74, 74, 255, 0.35));
  z-index: 0;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.team-photo-wrap.team-card .team-card-inner {
  position: absolute;
  inset: 2px;
  z-index: 1;
  border-radius: 14px;
}
.team-photo-wrap.team-card:not(.revealed) .team-card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.team-photo-wrap.team-card:not(.revealed) .team-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  border-radius: 14px;
  z-index: 11;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.team-photo-wrap.team-card:not(.revealed) img,
.team-photo-wrap.team-card:not(.revealed) .team-photo-caption {
  opacity: 0;
}
.team-photo-wrap.team-card .team-card-inner img,
.team-photo-wrap.team-card .team-card-inner .team-photo-caption {
  transition: opacity 0.5s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.team-photo-wrap.team-card.revealed .team-card-inner::before,
.team-photo-wrap.team-card.revealed .team-card-inner::after {
  opacity: 0;
  pointer-events: none;
}
.team-photo-wrap.team-card.revealed img,
.team-photo-wrap.team-card.revealed .team-photo-caption {
  opacity: 1;
}

.team-photo-wrap.team-card::after {
  content: attr(data-dept);
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.35rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, rgba(0, 0, 128, 0.85), rgba(74, 74, 255, 0.7));
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
  backdrop-filter: blur(4px);
}

.team-photo-wrap.revealed {
  transform: translateY(0);
}

.team-photo-wrap.team-card:hover,
.team-photo-wrap.team-card.revealed:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 0, 128, 0.25);
}

.team-photo-wrap.team-card:hover::before {
  opacity: 1;
}

.team-card-inner {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-photo-wrap:hover img {
  transform: scale(1.15);
}

.team-photo-wrap:hover .team-photo-caption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.97), rgba(0, 0, 0, 0.75));
}

.team-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.65));
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Legacy team-photo-wrap (without team-card) for compatibility */
.team-photo-wrap:not(.team-card) {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.team-photo-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.team-photo-title {
  font-size: 0.8rem;
  color: var(--primary-text);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 1;
}

.team-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.team-values .value-item {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 128, 0.15);
  background: rgba(0, 0, 128, 0.03);
  transition: border-color 0.2s, background 0.2s;
}

.team-values .value-item:hover {
  border-color: rgba(0, 0, 128, 0.3);
  background: rgba(0, 0, 128, 0.06);
}

.team-values .value-item strong {
  color: var(--primary-text);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.team-school {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.team-school-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.school-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 128, 0.15);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--primary-text);
  font-weight: 500;
  transition: all 0.2s;
}

.school-link:hover {
  background: rgba(0, 0, 128, 0.2);
  border-color: rgba(0, 0, 128, 0.5);
}

.school-link img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}

/* Robot Viewer */
.robot {
  background: transparent;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.robot .container {
  position: relative;
  z-index: 1;
}

.robot-viewer {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d0d0d;
  box-shadow: var(--shadow);
  aspect-ratio: 16/9;
  min-height: 400px;
  margin-top: 2rem;
}

.robot-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #0d0d0d;
  color: var(--text-muted);
  font-size: 0.95rem;
  z-index: 2;
  transition: opacity 0.4s;
}

.robot-loading.hidden {
  pointer-events: none;
  opacity: 0;
}

.robot-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 128, 0.2);
  border-top-color: var(--primary-text);
  border-radius: 50%;
  animation: robot-spin 0.8s linear infinite;
}

@keyframes robot-spin {
  to { transform: rotate(360deg); }
}

.robot-unavailable {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 1rem;
  text-align: center;
  background: #0d0d0d;
}

#robot-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.robot-controls {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0.75rem;
}

.ctrl-btn {
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.robot .section-desc {
  font-size: 1.05rem;
  margin-top: 0.25rem;
}

.ctrl-btn:hover {
  background: var(--primary-light);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

.ctrl-btn-outline {
  background: transparent;
  color: var(--primary-text);
  border-color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.ctrl-btn-outline:hover {
  background: rgba(74, 74, 255, 0.2);
  color: #fff;
  border-color: var(--primary-text);
}

/* Stats */
.stats {
  background: transparent;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stats .container {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.stat-card.highlight {
  border-color: rgba(0, 0, 128, 0.5);
  background: linear-gradient(135deg, rgba(0, 0, 128, 0.15) 0%, transparent 100%);
}

.stat-value {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-text);
  font-variant-numeric: tabular-nums;
}

.stat-value sup {
  font-size: 0.5em;
  font-weight: 500;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-pct {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* Competitions */
.competitions {
  background: transparent;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.competitions .container {
  position: relative;
  z-index: 1;
}

.comp-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.comp-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.comp-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.comp-card.upcoming {
  border-style: dashed;
  opacity: 0.9;
}

.comp-badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
}

.comp-card.upcoming .comp-badge {
  background: transparent;
  border: 2px solid var(--primary);
}

/* Sponsors */
.sponsors {
  background: transparent;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sponsors .container {
  position: relative;
  z-index: 1;
}

.sponsors .section-desc {
  font-size: 1.05rem;
  margin-top: 0.25rem;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: stretch;
  justify-items: stretch;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
  box-shadow: var(--shadow);
  min-height: 200px;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.sponsor-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.sponsor-card img {
  max-width: 140px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.3);
  transition: filter 0.3s;
  flex-shrink: 0;
}

.sponsor-card:hover img {
  filter: grayscale(0);
}

.sponsor-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.sponsor-card:hover .sponsor-name {
  color: var(--primary-text);
}

.comp-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.comp-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.comp-record {
  font-size: 0.85rem;
  color: var(--primary-text);
  font-variant-numeric: tabular-nums;
  margin-top: 0.25rem;
}

/* Contact */
.contact {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.social-link:hover {
  border-color: var(--primary-text);
  color: var(--primary-text);
  box-shadow: var(--shadow-hover);
}

.social-link svg {
  width: 24px;
  height: 24px;
}

/* Footer */
.footer {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), #000);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 400px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 128, 0.4), transparent);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.footer-logo-link:hover {
  opacity: 0.85;
}

.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-brand .logo-team {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  color: var(--primary-text);
}

.footer-brand .logo-num {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.footer-links-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-bottom: 0;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--primary-text);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 0, 128, 0.12);
  border: 1px solid rgba(0, 0, 128, 0.25);
  color: var(--text-muted);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: rgba(0, 0, 128, 0.25);
  border-color: var(--primary);
  color: var(--primary-text);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-meta,
.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.footer-meta a {
  color: var(--primary-text);
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-inner {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -1.5rem;
    right: -1.5rem;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav.open .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav.open .nav-links a:last-child {
    border-bottom: none;
  }

  .nav.open .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-links-row {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-nav {
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-social {
    gap: 0.5rem;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
  }

  .footer-social svg {
    width: 18px;
    height: 18px;
  }

  .hero-title-main {
    letter-spacing: 0.1em;
  }

  .hero-title-sub {
    letter-spacing: 0.2em;
  }

  .robot-viewer {
    min-height: 300px;
  }

  .school-link {
    flex-direction: column;
  }

  .team-hero {
    grid-template-columns: 1fr;
  }

  .team-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-highlight {
    min-width: auto;
  }

  .team-values {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .team-dept-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.25rem;
  }

  .team-photo-wrap.team-card::after {
    font-size: 0.55rem;
    padding: 0.25rem 0.5rem;
  }

  .team-photo-name {
    font-size: 0.9rem;
  }

  .team-photo-title {
    font-size: 0.7rem;
  }
}
