/* BANANOPX — Minimalist Dark Theme */

:root {
  --bg: #000000;
  --bg-subtle: #080808;
  --bg-card: #0c0c0d;
  --text: #ededed;
  --text-dim: #71717a;
  --text-muted: #52525b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
}

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

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  overflow-x: hidden;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Subtle scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Minimal Top Nav */
.minimal-nav {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

/* Apple-style Scroll Intro Section */
.scroll-intro-track {
  position: relative;
  width: 100%;
  height: 400vh; /* Controla la duración del scroll */
  background: #000000;
}

.scroll-intro-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#intro-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.intro-milestone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.intro-milestone.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Project Card Hover */
.project-card {
  position: relative;
  transition: opacity 0.3s ease;
}

.project-card .media-wrap {
  position: relative;
  overflow: hidden;
  background: #050505;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.project-card:hover .media-wrap {
  border-color: var(--border-strong);
}

.project-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover img {
  transform: scale(1.02);
}

/* Filter buttons */
.filter-link {
  color: var(--text-dim);
  transition: color 0.2s ease;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-link:hover,
.filter-link.active {
  color: #ffffff;
}

.filter-link.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Modal styling */
.modal-overlay {
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Minimal interactive slider */
.minimal-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  user-select: none;
}

.minimal-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.8);
}

.slider-overlay img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.slider-grab-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: ew-resize;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  z-index: 10;
}
