/* ============================================================
   HERO — David Špaňhel Portfolio
   hero.css — verze 4.0 (dark, editorial)
   ============================================================ */


/* ----------------------------------------
   HERO — základní layout
   ---------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  overflow: hidden;
  background: #1A1A1A;
  color: #F0F0F0;
}


/* ----------------------------------------
   DEKORACE — subtilní vertikální linky
   ---------------------------------------- */

.hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__deco-line {
  position: absolute;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(224, 48, 48, 0.15) 40%,
    rgba(224, 48, 48, 0.15) 60%,
    transparent 100%
  );
}
.hero__deco-line--1 { left: 8%;  top: 10%; height: 50%; }
.hero__deco-line--2 { right: 6%; top: 20%; height: 40%; }

.hero__deco-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--clr-accent);
}
.hero__deco-dot--1 {
  width: 5px; height: 5px;
  left: calc(8% - 2px); top: 10%;
  opacity: 0.7;
  box-shadow: var(--glow-accent);
}
.hero__deco-dot--2 {
  width: 4px; height: 4px;
  right: calc(6% - 2px); top: 20%;
  opacity: 0.4;
}


/* ----------------------------------------
   ROHOVÉ SYMBOLY
   ---------------------------------------- */

.hero__corner {
  position: absolute;
  font-size: 1rem;
  line-height: 1;
  color: rgba(240, 240, 240, 0.20);
  pointer-events: none;
  z-index: 1;
  user-select: none;
  font-weight: 300;
}

.hero__corner--tl { top:    var(--sp-20); left:  clamp(1rem, 2vw, 2.5rem); }
.hero__corner--tr { top:    var(--sp-20); right: clamp(1rem, 2vw, 2.5rem); }
.hero__corner--bl { bottom: var(--sp-20); left:  clamp(1rem, 2vw, 2.5rem); }
.hero__corner--br { bottom: var(--sp-20); right: clamp(1rem, 2vw, 2.5rem); }


/* ----------------------------------------
   CURSOR GLOW
   ---------------------------------------- */

.hero__cursor-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 48, 48, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  top: -280px;
  left: -280px;
  will-change: transform;
  transition: opacity 0.5s ease;
}


/* ----------------------------------------
   HLAVNÍ OBSAH — nadpis + ticker
   ---------------------------------------- */

.hero__main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: var(--sp-8);
}

.hero__title {
  font-weight: 800;
  line-height: 0.90;
  letter-spacing: -0.03em;
  color: #F0F0F0;
  margin: 0 0 var(--sp-8);
  padding: 0 clamp(1rem, 2vw, 2.5rem);
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__title-line--1 {
  font-size: clamp(3rem, 10.5vw, 152px);
}

.hero__title-line--2 {
  font-size: clamp(3.5rem, 13vw, 188px);
}

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

/* Word-by-word slide-up animation */
.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.hero__word.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ----------------------------------------
   TICKER — horizontální scrollující text
   ---------------------------------------- */

.hero__ticker {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(240, 240, 240, 0.08);
  border-bottom: 1px solid rgba(240, 240, 240, 0.08);
  padding: var(--sp-3) 0;
}

.hero__ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 42s linear infinite;
  will-change: transform;
}

.hero__ticker-item {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(240, 240, 240, 0.65);
  letter-spacing: var(--ls-wide);
  flex-shrink: 0;
  padding-right: var(--sp-2);
}

.hero__ticker-author {
  color: var(--clr-accent);
  font-weight: 700;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}


/* ----------------------------------------
   SPODNÍ ČÁST — perex + tlačítka
   ---------------------------------------- */

.hero__bottom {
  position: relative;
  z-index: 1;
  padding-bottom: var(--sp-20);
}

.hero__perex {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: rgba(240, 240, 240, 0.55);
  max-width: 480px;
  margin-bottom: var(--sp-8);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Override button colors for dark hero bg */
.hero .btn-primary {
  background: var(--clr-accent);
  color: #FFFFFF;
  border-color: var(--clr-accent);
}

.hero .btn-ghost {
  color: rgba(240, 240, 240, 0.75);
  border-color: rgba(240, 240, 240, 0.20);
}

.hero .btn-ghost:hover {
  color: #F0F0F0;
  border-color: rgba(240, 240, 240, 0.50);
  background: rgba(240, 240, 240, 0.06);
}


/* ----------------------------------------
   SCROLL INDIKÁTOR
   ---------------------------------------- */

.hero__scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  z-index: 1;
}

.hero__scroll-text {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.30);
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}


/* ----------------------------------------
   RESPONZIVITA
   ---------------------------------------- */

@media (max-width: 1024px) {
  .hero__title-line--1 { font-size: clamp(2.5rem, 10vw, 120px); }
  .hero__title-line--2 { font-size: clamp(3rem, 12.5vw, 152px); }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 80px;
  }
  .hero__deco-line--1,
  .hero__deco-line--2 { display: none; }
  .hero__scroll { display: none; }
  .hero__corner--tr,
  .hero__corner--br { display: none; }
  .hero__title-line--1 { font-size: clamp(2.5rem, 11vw, 80px); }
  .hero__title-line--2 { font-size: clamp(3rem, 13.5vw, 100px); }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
