/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
  --bg-color: #000000;
  --bg-alternate: #080808;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #555555;
  --border-color: #333333;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.3);
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-base: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-image: filter 0.4s ease, transform 0.4s ease;
}

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

html {
  overflow-x: hidden;
  background-color: var(--bg-color);
}

body {
  background-color: var(--bg-color);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Selection */
::selection {
  background-color: #ffffff;
  color: #000000;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-base);
}
a:hover {
  color: var(--text-secondary);
}

.section-spacing {
  padding: 80px 0;
  position: relative;
}

.border-top-divider {
  border-top: 1px solid var(--border-color);
}

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

body.hovering-link .custom-cursor-dot {
  width: 4px;
  height: 4px;
  background-color: #000000;
}
body.hovering-link .custom-cursor-follower {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 1);
  border-color: #ffffff;
  mix-blend-mode: difference;
}

@media (max-width: 991.98px) {
  .custom-cursor-dot, .custom-cursor-follower {
    display: none !important;
  }
}

@media (min-width: 992px) {
  html, body, a, button, select, input, textarea, [role="button"] {
    cursor: none !important;
  }
}

/* ==========================================
   SCROLL PROGRESS BAR
   ========================================== */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1050;
  background: transparent;
}
.scroll-progress-bar {
  height: 100%;
  background: #ffffff;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
.navbar-custom {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  transition: var(--transition-base);
}
.navbar-brand-custom {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.navbar-brand-custom span {
  color: #666;
}

.btn-back-hub {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  transition: var(--transition-base);
  border-radius: 0;
}
.btn-back-hub:hover {
  background: var(--text-primary);
  color: #000000;
  border-color: var(--text-primary);
}

/* ==========================================
   PROJECT HEADER
   ========================================== */
.project-header {
  padding: 140px 0 60px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  background-color: var(--bg-alternate);
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 15px;
}

.project-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

@media (max-width: 767.98px) {
  .project-title {
    font-size: 2rem;
  }
}

/* ==========================================
   TWO-COLUMN CONTENT BREAKDOWN
   ========================================== */
.content-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 25px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.content-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.content-bullet-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.content-bullet-item {
  padding: 8px 0;
  font-size: 1rem;
  display: flex;
  align-items: start;
}
.content-bullet-item::before {
  content: '→';
  margin-right: 12px;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Sidebar metadata panel */
.metadata-panel {
  border: 1px solid var(--border-color);
  background-color: var(--bg-alternate);
  padding: 40px 30px;
  position: sticky;
  top: 100px;
}

.metadata-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.metadata-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.metadata-value:last-child {
  margin-bottom: 0;
}

.tool-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background-color: var(--bg-color);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  margin: 0 6px 8px 0;
}

/* ==========================================
   9:16 VERTICAL VIDEO CARD TEMPLATES
   ========================================== */
.video-showcase-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.video-card-9-16 {
  border: 1px solid var(--border-color);
  background-color: var(--bg-alternate);
  transition: var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.video-card-9-16:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.video-thumbnail-container {
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  position: relative;
  background-color: #111;
  filter: grayscale(100%);
  transition: var(--transition-image);
}

.video-card-9-16:hover .video-thumbnail-container {
  filter: grayscale(0%);
}

.video-svg-artwork {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.video-card-9-16:hover .video-svg-artwork {
  transform: scale(1.03);
}

/* Play overlay indicator */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
  z-index: 2;
}

.video-card-9-16:hover .video-play-overlay {
  opacity: 1;
}

.play-button-icon {
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transform: scale(0.8);
  transition: var(--transition-base);
}

.video-card-9-16:hover .play-button-icon {
  transform: scale(1);
}

.video-card-content {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-color);
}

.video-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.video-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-video-source {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  transition: var(--transition-base);
  border-radius: 0;
  text-align: center;
  width: 100%;
}

.btn-video-source:hover {
  background: var(--text-primary);
  color: #000000;
  border-color: var(--text-primary);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer-section {
  background-color: var(--bg-alternate);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 44px;
  height: 44px;
  background-color: #000000;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-base);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
