/* Spurdog UUV — Static Site Styles */

:root {
  --navy: #0a1628;
  --navy-light: #132240;
  --accent: #3b9eff;
  --accent-hover: #5bb3ff;
  --text: #e0e6ed;
  --text-muted: #8899aa;
  --white: #ffffff;
  --border: #1e3254;
  --card-bg: #111d32;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* ── Navigation ── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

nav .logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

nav .logo span {
  color: var(--accent);
}

nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

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

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

nav .nav-links .btn-signin {
  background: var(--accent);
  color: var(--white);
  padding: 0.45rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}

nav .nav-links .btn-signin:hover {
  background: var(--accent-hover);
}

/* ── Hero ── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(rgba(10, 22, 40, 0.75), rgba(19, 34, 64, 0.85)),
              url('/img/vehicles/spurdog_on_dock.jpg') center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.15;
}

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

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.hero .hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Partners ── */

.partners {
  padding: 3rem 0 0;
  text-align: center;
}

.partners h2 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.marquee {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  scrollbar-width: none;
}

.marquee::-webkit-scrollbar {
  display: none;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}

.marquee-track a {
  display: block;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.marquee-track a:hover {
  opacity: 1;
}

.marquee-track img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* ── Specs Bar ── */

.specs-bar {
  background: var(--navy-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.specs-bar .specs-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

.specs-bar .spec {
  text-align: center;
}

.specs-bar .spec .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.specs-bar .spec .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Sections ── */

.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 700px;
}

/* ── Cards Grid ── */

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.15s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ── Page Header (for subpages) ── */

.page-header {
  padding: 8rem 2rem 3rem;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Content (for subpages) ── */

.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 2.5rem 0 0.75rem;
}

.content h2:first-child {
  margin-top: 0;
}

.content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.content ul, .content ol {
  color: var(--text-muted);
  margin: 0 0 1.5rem 1.5rem;
}

.content li {
  margin-bottom: 0.4rem;
}

.content .callout {
  background: var(--card-bg);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.content .callout p {
  margin-bottom: 0;
}

/* ── Publication Entries ── */

.pub-entry {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.pub-entry:last-child {
  border-bottom: none;
}

.pub-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.4;
  display: block;
  margin-bottom: 0.35rem;
}

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

.pub-authors {
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.15rem !important;
}

.pub-venue {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 0.25rem !important;
}

.pub-pdf {
  font-size: 0.85rem;
  margin-bottom: 0 !important;
}

.pub-pdf a {
  font-weight: 600;
}

.pub-meta {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.pub-meta p {
  margin-bottom: 0.35rem !important;
  font-size: 0.95rem;
}

.pub-meta p:last-child {
  margin-bottom: 0 !important;
}

pre.bibtex {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow-x: auto;
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* ── News Entries ── */

.news-entry {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.news-entry:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem !important;
}

.news-entry h2 {
  margin-top: 0 !important;
  margin-bottom: 0.5rem;
}

.news-image {
  margin: 1.25rem 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.news-image img {
  width: 100%;
  display: block;
}

.news-image figcaption {
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Team Rows ── */

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.team-row:last-child {
  border-bottom: none;
}

.team-info {
  flex: 1;
}

.team-info h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.team-role {
  color: var(--accent) !important;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.15rem !important;
}

.team-affiliation {
  color: var(--text-muted) !important;
  font-size: 0.85rem;
  margin-bottom: 0.4rem !important;
}

.team-info p {
  font-size: 0.9rem;
}

.team-photo {
  height: 200px;
  width: auto;
  max-width: 200px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.linkedin-link {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.linkedin-link:hover {
  color: #0a66c2;
}

.linkedin-icon {
  width: 20px;
  height: 20px;
}

/* ── Team Carousel ── */

.team-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  margin: 1.5rem -2rem;
  padding: 0 2rem;
}

.team-carousel::-webkit-scrollbar {
  display: none;
}

.team-carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 0.5rem 0;
}

.carousel-person {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  text-align: center;
}

.carousel-person img {
  height: 160px;
  width: auto;
  border-radius: 10px;
  transition: transform 0.2s;
}

.carousel-person:hover img {
  transform: scale(1.05);
}

.carousel-name {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.2s;
}

.carousel-person:hover .carousel-name {
  opacity: 1;
  color: var(--white);
}

/* ── Content Image ── */

.content-img {
  width: 100%;
  border-radius: 12px;
  margin: 1rem 0 1.5rem;
}

/* ── Project Entries ── */

.project-entry {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.project-entry:last-child {
  border-bottom: none;
}

.project-entry h2 {
  margin-top: 0 !important;
}

.project-link {
  text-decoration: none;
}

.project-link h2 {
  color: var(--accent);
  transition: color 0.2s;
}

.project-link:hover h2 {
  color: var(--accent-hover);
}

.project-pubs {
  font-size: 0.9rem;
}

/* ── Video ── */

.video-container {
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-container video {
  width: 100%;
  display: block;
}

/* ── Footer ── */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── Access Page Specifics ── */

.access-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.access-option {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.access-option h3 {
  margin-bottom: 0.75rem;
}

.access-option .step {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  padding-left: 1rem;
}

.access-option .step::before {
  content: '>';
  color: var(--accent);
  margin-left: -1rem;
  margin-right: 0.5rem;
  font-weight: bold;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  nav .nav-links {
    gap: 1rem;
  }
  nav .nav-links a {
    font-size: 0.8rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero .subtitle {
    font-size: 1rem;
  }
  .specs-bar .specs-inner {
    gap: 1.5rem;
  }
  .specs-bar .spec .value {
    font-size: 1.4rem;
  }
  .access-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  nav .nav-links {
    gap: 0.5rem;
  }
  .hero .hero-buttons {
    flex-direction: column;
  }
}
