/* ============================================================
   NESTOR ARAUJO — home.css
   All styles specific to index.html
   ============================================================

   ╔════════════════════════════════════════════╗
   ║   QUICK-EDIT INDEX                         ║
   ║   [HERO]    Hero section with video bg     ║
   ║   [STRIP]   Marquee / ticker strip         ║
   ║   [STORY]   Scroll-story sections          ║
   ║   [SLIDER]  Horizontal project slider      ║
   ║   [NUMS]    Stats / numbers section        ║
   ║   [SERV]    Services cards                 ║
   ║   [CTA]     Final call-to-action           ║
   ║   [RESP]    Responsive overrides           ║
   ╚════════════════════════════════════════════╝
*/

/* ─────────────────────────────────── [HERO] ─── */
.hero {
  position: relative;
  height: 100vh; min-height: 700px;
  display: flex; align-items: flex-end;
  padding: 0 var(--px) 100px;
  overflow: hidden;
}
/* Video / image background */
.hero-media {
  position: absolute; inset: 0;
  background: #111; /* fallback */
}
.hero-media video,
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-media video { filter: brightness(.52) saturate(.8); }
.hero-media img   { filter: brightness(.45) saturate(.75); }

/* Multi-layer overlay for depth */
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(198,255,0,.07) 0%, transparent 60%),
    linear-gradient(to top, rgba(26,26,26,.9) 0%, rgba(26,26,26,.1) 50%, transparent 100%),
    linear-gradient(to right, rgba(26,26,26,.5) 0%, transparent 55%);
}

/* Content */
.hero-content {
  position: relative; z-index: 2;
  max-width: 900px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(198,255,0,.1);
  border: 1px solid rgba(198,255,0,.25);
  border-radius: 100px; padding: 7px 18px;
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp .9s .3s forwards;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: glowPulse 2.5s ease-in-out infinite;
}
.hero-eyebrow span {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--green);
}
.hero-headline {
  font-size: clamp(56px, 8.5vw, 128px);
  font-weight: 800; line-height: .92;
  letter-spacing: -.04em;
  color: var(--white); margin-bottom: 28px;
  opacity: 0; animation: fadeUp 1s .5s forwards;
}
.hero-headline .line-accent { color: var(--green); }
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px); font-weight: 300;
  line-height: 1.7; color: rgba(255,255,255,.65);
  max-width: 520px; margin-bottom: 44px;
  opacity: 0; animation: fadeUp 1s .7s forwards;
}
.hero-actions {
  display: flex; align-items: center; gap: 20px;
  opacity: 0; animation: fadeUp 1s .9s forwards;
}
/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 40px; right: var(--px);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: fadeIn 1s 1.6s forwards;
}
.hero-scroll-hint span {
  font-size: 9px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase;
  color: rgba(255,255,255,.4); writing-mode: vertical-rl; transform: rotate(180deg);
}
.hero-scroll-hint-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, rgba(198,255,0,.5), transparent);
  animation: scrollPulse 2.2s 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity: .6; }
  50%      { transform: scaleY(.5); opacity: .2; }
}

/* ─────────────────────────────────── [STRIP] ─── */
.ticker-strip {
  background: var(--green);
  overflow: hidden; padding: 14px 0;
  position: relative;
}
.ticker-strip::before, .ticker-strip::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2;
  pointer-events: none;
}
.ticker-strip::before { left: 0; background: linear-gradient(to right, var(--green), transparent); }
.ticker-strip::after  { right: 0; background: linear-gradient(to left, var(--green), transparent); }
.ticker-track {
  display: flex; gap: 0; width: max-content;
  animation: marqueeLTR 20s linear infinite;
}
.ticker-item {
  padding: 0 40px;
  font-size: 11px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--bg); white-space: nowrap;
  display: flex; align-items: center; gap: 40px;
}
.ticker-item::after { content: '◆'; font-size: 8px; opacity: .5; }

/* ─────────────────────────────────── [STORY] ─── */
/* Generic scroll-story block */
.story-section {
  padding: var(--py) var(--px);
  position: relative;
}
.story-section.bg-dark { background: var(--bg-2); }
.story-section.bg-card { background: var(--bg-card); }

/* Two-column story row */
.story-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.story-row.reverse { direction: rtl; }
.story-row.reverse > * { direction: ltr; }

/* Visual side (image/video box) */
.story-visual {
  border-radius: 20px; overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-2);
}
.story-visual video,
.story-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.story-visual:hover video,
.story-visual:hover img { transform: scale(1.04); }
/* Green corner accent */
.story-visual::after {
  content: '';
  position: absolute; inset: 0; border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(198,255,0,.15);
  pointer-events: none;
}

/* Text side */
.story-text { }
.story-label {
  font-size: 10px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--green); margin-bottom: 16px; display: block;
}
.story-text h2 {
  font-size: clamp(32px, 4vw, 58px); font-weight: 800;
  line-height: 1; letter-spacing: -.03em; margin-bottom: 24px;
}
.story-text h2 em { font-style: normal; color: var(--green); }
.story-text p {
  font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.62);
  margin-bottom: 20px;
}
.story-text p:last-of-type { margin-bottom: 36px; }

/* Full-width story section (cinematic) */
.story-cinematic {
  position: relative; padding: 0;
  min-height: 85vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.story-cinematic-bg {
  position: absolute; inset: 0;
}
.story-cinematic-bg video,
.story-cinematic-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.35) saturate(.7);
}
.story-cinematic-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(198,255,0,.06) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(35,35,35,.4) 0%, rgba(35,35,35,.6) 100%);
  pointer-events: none;
}
.story-cinematic-content {
  position: relative; z-index: 2;
  text-align: center; padding: var(--py) var(--px);
  max-width: 900px;
}
.story-cinematic-content h2 {
  font-size: clamp(42px, 7vw, 100px); font-weight: 800;
  line-height: .95; letter-spacing: -.04em;
  margin-bottom: 28px;
}
.story-cinematic-content h2 span { color: var(--green); }
.story-cinematic-content p {
  font-size: clamp(15px, 1.6vw, 19px); font-weight: 300; line-height: 1.75;
  color: rgba(255,255,255,.7); max-width: 600px; margin: 0 auto 40px;
}

/* ─────────────────────────────────── [SLIDER] ─── */
/* Horizontal scroll driven by vertical scroll */
.projects-slider-section {
  position: relative;
  /* Height = 100vh × number of slides, so scroll space is enough */
  /* JS sets inline --total-slides for dynamic height */
}
.projects-slider-sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}

/* Header above track */
.slider-header {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 36px var(--px) 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  z-index: 10; pointer-events: none;
}
.slider-header .eyebrow { pointer-events: auto; }
.slider-counter {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--muted); pointer-events: none;
}
.slider-counter span { color: var(--green); }

/* The track that moves */
.slider-track {
  display: flex; gap: 24px;
  padding: 0 var(--px);
  will-change: transform;
  transition: transform .05s linear; /* smoothed in JS */
}

/* Individual project card */
.project-slide {
  flex-shrink: 0;
  width: calc(50vw - var(--px) - 12px);  /* ← 2 visible at once */
  border-radius: 20px; overflow: hidden;
  position: relative; aspect-ratio: 16/10;
  background: var(--bg-card);
  transition: transform .6s var(--ease);
}
.project-slide:hover { transform: translateY(-6px); }
.project-slide img,
.project-slide video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.72) saturate(.85);
  transition: transform .8s var(--ease), filter .6s;
}
.project-slide:hover img,
.project-slide:hover video {
  transform: scale(1.05);
  filter: brightness(.55) saturate(.7);
}
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,.9) 0%, transparent 55%);
  pointer-events: none;
}
.slide-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 32px 32px;
  transform: translateY(6px); transition: transform .5s var(--ease);
}
.project-slide:hover .slide-info { transform: translateY(0); }
.slide-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--green); margin-bottom: 7px; display: block;
}
.slide-title {
  font-size: clamp(20px, 2.2vw, 30px); font-weight: 800;
  line-height: 1.1; letter-spacing: -.02em;
}
.slide-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--white); opacity: 0; transform: translateX(-8px);
  transition: opacity .4s .1s, transform .4s .1s;
}
.slide-cta::after { content: '→'; font-size: 12px; }
.project-slide:hover .slide-cta { opacity: 1; transform: translateX(0); }

/* Progress bar */
.slider-progress {
  position: absolute; bottom: 40px; left: var(--px); right: var(--px);
  z-index: 10; display: flex; align-items: center; gap: 16px;
}
.slider-progress-track {
  flex: 1; height: 1px; background: rgba(255,255,255,.15); border-radius: 1px;
  overflow: hidden;
}
.slider-progress-fill {
  height: 100%; width: 0%; background: var(--green); border-radius: 1px;
  transition: width .1s linear;
}
.slider-progress-hint {
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.3); white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.slider-arrow {
  width: 10px; height: 10px; opacity: .4;
  animation: arrowBounce 1.6s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%,100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}

/* ─────────────────────────────────── [NUMS] ─── */
.numbers-section {
  background: var(--bg-2);
  padding: var(--py) var(--px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.numbers-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
}
.num-cell {
  padding: 52px 40px;
  border-right: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: background .4s;
}
.num-cell:last-child { border-right: none; }
.num-cell:hover { background: rgba(198,255,0,.04); }
.num-cell::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.num-cell:hover::after { transform: scaleX(1); }
.num-value {
  font-size: 70px; font-weight: 800; line-height: 1;
  letter-spacing: -.04em; color: var(--white); margin-bottom: 10px;
}
.num-value sup { font-size: 36px; color: var(--green); vertical-align: super; line-height: 0; }
.num-label {
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); line-height: 1.5;
}

/* ─────────────────────────────────── [SERV] ─── */
.services-section {
  background: var(--bg);
  padding: var(--py) var(--px);
}
.services-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 56px;
}
.services-intro { max-width: 380px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.services-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.service-card {
  border-radius: 16px; overflow: hidden;
  background: var(--bg-card);
  position: relative;
  aspect-ratio: 3/4.2;
  border: 1px solid var(--border);
  transition: border-color .4s, transform .5s var(--ease);
}
.service-card:hover { border-color: rgba(198,255,0,.3); transform: translateY(-4px); }
.service-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .3; filter: saturate(.5);
  transition: opacity .6s, transform .8s var(--ease);
}
.service-card:hover img { opacity: .45; transform: scale(1.06); }
.service-card-content {
  position: absolute; inset: 0;
  padding: 26px 24px 28px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(26,26,26,.88) 0%, rgba(26,26,26,.15) 60%, transparent 100%);
}
.service-num {
  position: absolute; top: 22px; left: 24px;
  font-size: 10px; font-weight: 700; letter-spacing: .22em;
  color: var(--green);
}
.service-name {
  font-size: 26px; font-weight: 800; line-height: 1.05;
  letter-spacing: -.02em; margin-bottom: 10px;
}
.service-desc {
  font-size: 12.5px; line-height: 1.65; color: rgba(255,255,255,.55);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .55s var(--ease), opacity .4s;
}
.service-card:hover .service-desc { max-height: 100px; opacity: 1; }

/* ─────────────────────────────────── [CTA] ─── */
.cta-section {
  position: relative; overflow: hidden;
  padding: var(--py) var(--px);
  text-align: center;
  background: var(--bg-2);
}
/* Radial green glow behind CTA */
.cta-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(198,255,0,.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 800; letter-spacing: -.04em;
  line-height: .95; margin-bottom: 24px;
  position: relative; z-index: 1;
}
.cta-section h2 span { color: var(--green); }
.cta-section p {
  font-size: 16px; line-height: 1.75; color: var(--muted);
  max-width: 500px; margin: 0 auto 44px;
  position: relative; z-index: 1;
}
.cta-actions {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  position: relative; z-index: 1;
}
.cta-email {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.5); margin-top: 28px;
  position: relative; z-index: 1;
}
.cta-email a { color: var(--green); transition: color .3s; }
.cta-email a:hover { color: #d4ff1a; }

/* ─────────────────────────────────── [RESP] ─── */
@media (max-width: 1100px) {
  .story-row { gap: 48px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .numbers-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero { padding-bottom: 72px; }
  .story-row { grid-template-columns: 1fr; gap: 32px; }
  .story-row.reverse { direction: ltr; }
  .project-slide { width: calc(80vw - var(--px)); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .slider-header { padding-top: 24px; }
  .services-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 540px) {
  .hero-headline { font-size: 52px; }
  .services-grid { grid-template-columns: 1fr; }
  .project-slide { width: calc(88vw - var(--px)); }
  .cta-actions { flex-direction: column; }
}
