/* ============================================
   Melbourne AI Hub — Cinematic Video-Loop Site
   ============================================ */

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

:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --accent-blue: #00b4ff;
  --accent-amber: #ffb800;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  html {
    scroll-snap-type: none;
  }
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Custom Cursor --- */
.custom-cursor {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition:
    width 0.3s,
    height 0.3s,
    border-color 0.3s,
    background 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.custom-cursor.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--accent-blue);
  background: rgba(0, 180, 255, 0.1);
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--text-primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .custom-cursor,
  .custom-cursor-dot {
    display: none;
  }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 15, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.logo-mel {
  color: var(--text-primary);
}
.logo-ai {
  color: var(--accent-blue);
}
.logo-hub {
  color: var(--accent-amber);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-blue);
  transition: width 0.3s;
}

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

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

.nav-links .nav-cta {
  background: var(--accent-blue);
  color: var(--bg-primary);
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.nav-links .nav-cta::after {
  display: none;
}

.nav-links .nav-cta:hover {
  background: #33c3ff;
  color: var(--bg-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 26, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* --- Sections --- */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  overflow: hidden;
}

/* --- Video Background --- */
.video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 26, 0.55) 0%,
    rgba(10, 15, 26, 0.4) 40%,
    rgba(10, 15, 26, 0.7) 100%
  );
}

.overlay-heavy {
  background: linear-gradient(
    180deg,
    rgba(10, 15, 26, 0.7) 0%,
    rgba(10, 15, 26, 0.5) 40%,
    rgba(10, 15, 26, 0.8) 100%
  );
}

.overlay-gradient-left {
  background: linear-gradient(
    90deg,
    rgba(10, 15, 26, 0.9) 0%,
    rgba(10, 15, 26, 0.6) 40%,
    rgba(10, 15, 26, 0.2) 100%
  );
}

.overlay-warm {
  background: linear-gradient(
    180deg,
    rgba(10, 15, 26, 0.6) 0%,
    rgba(10, 15, 26, 0.45) 40%,
    rgba(10, 15, 26, 0.7) 100%
  );
}

/* --- Hero Section --- */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.title-line:nth-child(2) {
  animation-delay: 0.7s;
}

.title-accent {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 4px;
  cursor: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: #33c3ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 180, 255, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-large {
  padding: 1.1rem 3rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .btn {
    cursor: pointer;
  }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1.5s forwards;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* --- Section Content --- */
.section-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.content-left {
  max-width: 700px;
  margin: 0;
  margin-left: max(3rem, 8vw);
}

.content-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.text-accent {
  color: var(--accent-blue);
}

.text-accent-warm {
  color: var(--accent-amber);
}

.section-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 3rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .section-content {
    padding: 4rem 1.5rem;
  }
  .content-left {
    margin-left: 1.5rem;
  }
}

/* --- Pillars (Vision Section) --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.pillar {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: all 0.4s ease;
}

.pillar:hover {
  background: rgba(0, 180, 255, 0.05);
  border-color: rgba(0, 180, 255, 0.2);
  transform: translateY(-4px);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.pillar h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --- Space Section --- */
.space-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-amber);
  font-variant-numeric: tabular-nums;
}

.spec-value sup {
  font-size: 0.5em;
}

.spec-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.space-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.amenity {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.amenity:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Concept rendering label */
.concept-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  opacity: 0.7;
  font-style: italic;
}

/* --- Capabilities Section --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.capability-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.capability-card:hover {
  background: rgba(0, 180, 255, 0.04);
  border-color: rgba(0, 180, 255, 0.15);
  transform: translateY(-4px);
}

.cap-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cap-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: rgba(0, 180, 255, 0.15);
  color: var(--accent-blue);
}

.cap-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.capability-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Planned Tag */
.cap-tag.tag-planned {
  background: rgba(255, 180, 0, 0.12);
  color: var(--accent-amber);
}

/* Planned amenity label */
.amenity.planned {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  padding-left: 0;
}

/* Status badge in specs */
.spec-value.status-badge {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-amber);
  font-variant-numeric: normal;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.tech {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  color: var(--text-muted);
}

.tech.highlight {
  background: rgba(0, 180, 255, 0.1);
  border-color: rgba(0, 180, 255, 0.3);
  color: var(--accent-blue);
}

/* Event Preview */
.event-preview {
  margin-top: auto;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 180, 0, 0.05);
  border: 1px solid rgba(255, 180, 0, 0.15);
  border-radius: 4px;
}

.event-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-amber);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-name {
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Opening / Launch Status Section --- */
.launch-status {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
  text-align: left;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.status-item.done {
  color: var(--text-primary);
}

.status-check {
  color: #22c55e;
  font-weight: 700;
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-amber);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
  margin: 0 5px;
}

.status-circle {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0 5px;
}

.status-item.upcoming {
  color: var(--text-muted);
}

.interest-section {
  text-align: center;
  margin-bottom: 2rem;
}

.interest-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

.founders-note {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.founders-note p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.founders-note .founders-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  padding: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.footer-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-sub {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  margin-top: 0.25rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--accent-blue);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #33c3ff;
}

.footer-credits {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-credits p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-credits a {
  color: var(--accent-blue);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.3);
  }
}

/* --- Intersection Observer Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .video-bg video {
    display: none;
  }
}

/* --- Fallback: No video --- */
.section-hero {
  background: var(--bg-primary);
}
.section-vision {
  background: var(--bg-secondary);
}
.section-space {
  background: var(--bg-primary);
}
.section-capabilities {
  background: var(--bg-secondary);
}
.section-join {
  background: var(--bg-primary);
}

/* --- Selection --- */
::selection {
  background: rgba(0, 180, 255, 0.3);
  color: var(--text-primary);
}
