/* 
  Cambrian Canvas - Simplified Cinematic Stylesheet
  Focus: Dark Deep-Time Atmosphere, True Black Background, Volumetric Shadows
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@300;400;600&family=Inter:wght@200;300;400;500&family=Space+Grotesk:wght@300;400;500&display=swap');

:root {
  --bg-black: #000000;
  --bg-card: rgba(10, 15, 25, 0.5);
  --accent-cyan: #00e5ff;
  --accent-cyan-rgb: 0, 229, 255;
  --accent-blue: #0088cc;
  --text-primary: #f5f5f7;
  --text-secondary: #90a4ae;
  --text-muted: #37474f;
  --border-dark: rgba(255, 255, 255, 0.04);
  --border-glow: rgba(0, 229, 255, 0.08);
  
  --font-title: 'Cinzel', serif;
  --font-mono: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset and Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-black);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.06);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.25);
}

::selection {
  background: rgba(0, 229, 255, 0.15);
  color: var(--text-primary);
}

/* Fixed ambient canvas overlay */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 2;
}

section {
  padding: 12rem 0;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.015);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: block;
}

/* Scroll Reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Header Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.015);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 3rem;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.15rem;
  letter-spacing: 0.25em;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
}

nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

nav a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

/* 1. HERO — THE ABYSS */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  background-color: var(--bg-black);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/hero_deep_sea.jpg') no-repeat center center;
  background-size: cover;
  transform: scale(1.03);
  animation: slowZoom 60s infinite alternate ease-in-out;
  z-index: 1;
}

@keyframes slowZoom {
  0% { transform: scale(1.03); }
  100% { transform: scale(1.09); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.98) 95%);
  z-index: 2;
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 18rem;
  background: linear-gradient(to top, var(--bg-black), transparent);
  z-index: 3;
}

.hero-content {
  text-align: center;
  z-index: 5;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4.8rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  text-indent: 0.3em;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.75));
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
  text-transform: uppercase;
  margin-bottom: 4rem;
}

.hero-core-message {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 200;
  letter-spacing: 0.05em;
  line-height: 2.2;
  color: var(--text-primary);
  margin-bottom: 5.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.msg-line {
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* Core Buttons styling */
.btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.15rem 2.5rem;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background: none;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--text-primary);
  color: var(--bg-black);
}

.btn-secondary {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-secondary), transparent);
  overflow: hidden;
}

.scroll-line {
  width: 100%;
  height: 50%;
  background-color: var(--accent-cyan);
  animation: lineDrop 2s infinite ease-in-out;
}

@keyframes lineDrop {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* 2. FIRST FILM */
#first-film {
  background-color: var(--bg-black);
}

.film-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.film-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: var(--text-primary);
  word-break: keep-all;
}

.film-thumbnail-link {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 1.5rem auto;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.65);
}

.film-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.film-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 1.5s ease;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.play-button-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.play-icon-svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-cyan);
  transition: var(--transition-fast);
}

/* Hover effects */
.film-thumbnail-link:hover img {
  transform: scale(1.02);
}

.film-thumbnail-link:hover .play-overlay {
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.film-thumbnail-link:hover .play-button-ring {
  transform: scale(1.08);
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

.film-thumbnail-link:hover .play-icon-svg {
  fill: var(--bg-black);
}

.film-description {
  font-size: 1.15rem;
  line-height: 2.0;
  font-weight: 200;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  word-break: keep-all;
}

.btn-video {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-cyan);
  border: 1px solid var(--border-cyan);
  padding: 1.1rem 2.2rem;
  border-radius: 2px;
  transition: var(--transition-fast);
}

.btn-video svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.btn-video:hover {
  background: var(--accent-cyan);
  color: var(--bg-black);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

/* 3. DEEP-TIME MEDIA WALL */
#media-wall {
  background-color: var(--bg-black);
  overflow: hidden;
}

.media-wall-header {
  max-width: 850px;
  margin-bottom: 6rem;
}

.media-wall-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
}

.media-wall-subtitle {
  font-size: 1.1rem;
  line-height: 1.95;
  font-weight: 200;
  color: var(--text-secondary);
  word-break: keep-all;
}

/* Overlapping, Uneven Parallax Panel Grid */
.media-wall-space {
  position: relative;
  width: 100%;
  height: 960px;
  margin-top: 5rem;
}

.wall-panel {
  position: absolute;
  background: #05080e;
  border: 1px solid rgba(255, 255, 255, 0.015);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75);
  transition: border-color 0.8s ease, transform 0.1s ease-out;
}

.wall-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(0.75) saturate(0.8);
  transition: transform 3s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
}

.wall-panel:hover {
  border-color: rgba(0, 229, 255, 0.25);
  z-index: 10 !important;
}

.wall-panel:hover img {
  transform: scale(1.035);
  filter: contrast(1.1) brightness(0.9) saturate(1.0);
}

.panel-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.6);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  border-left: 1px solid var(--accent-cyan);
  pointer-events: none;
}

/* Staggered Coordinates */
.panel-large {
  width: 58%;
  height: 440px;
  top: 0;
  left: 0;
  z-index: 2;
}

.panel-medium {
  width: 42%;
  height: 320px;
  top: 240px;
  left: 54%;
  z-index: 2;
}

.panel-small {
  width: 44%;
  height: 280px;
  top: 580px;
  left: 6%;
  z-index: 4;
}

.panel-medium-vertical {
  width: 34%;
  height: 360px;
  top: 480px;
  left: 62%;
  z-index: 3;
}

/* 4. FOLLOW THE PROJECT */
#connect {
  background-color: var(--bg-black);
}

.connect-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.connect-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.connect-description {
  font-size: 1.1rem;
  line-height: 1.9;
  font-weight: 200;
  color: var(--text-secondary);
  margin-bottom: 5rem;
  word-break: keep-all;
}

.social-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-card:hover {
  background: transparent;
  color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: none;
}

.social-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.social-card span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* FOOTER */
footer {
  padding: 5rem 0;
  background-color: var(--bg-black);
  border-top: 1px solid rgba(255, 255, 255, 0.01);
}

.footer-content {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  section {
    padding: 8rem 0;
  }
  .hero-title {
    font-size: 3.8rem;
  }
  .media-wall-space {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  .wall-panel {
    position: static;
    width: 100% !important;
    height: 320px !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 2rem;
  }
  nav ul {
    display: none;
  }
  .hero-title {
    font-size: 2.8rem;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
  .btn {
    padding: 1rem;
    width: 100%;
    text-align: center;
  }
  .social-links-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .social-card {
    padding: 2.25rem 1.5rem;
  }
}
