/* ============================================================
   hero.css — Full-Screen Hero Section
   aharsh.com | Sprint 1
   ============================================================ */

/* ------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------ */
#hero {
  position: relative;
  width: 100%;
  height: 100svh;      /* svh = small viewport height, works on mobile */
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* ------------------------------------------------------------
   Background Image
   ------------------------------------------------------------ */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Warm gradient fallback — shows when hero-bg.jpg hasn't loaded yet */
  background: linear-gradient(135deg, #1f1d16 0%, #2d2820 50%, #1a1812 100%);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* Adjust to frame your image well */
  transform-origin: center center;
  will-change: transform;
}

/* ------------------------------------------------------------
   Gradient Overlay
   Heavy on the left (where text lives), reveals painting on right.
   Also darkens the bottom to prevent readability issues.
   ------------------------------------------------------------ */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Left-to-right: text side → painting side */
    linear-gradient(
      to right,
      rgba(15, 15, 13, 0.90) 0%,
      rgba(15, 15, 13, 0.60) 45%,
      rgba(15, 15, 13, 0.15) 100%
    ),
    /* Top vignette */
    linear-gradient(
      to bottom,
      rgba(15, 15, 13, 0.40) 0%,
      transparent 25%
    ),
    /* Bottom vignette */
    linear-gradient(
      to top,
      rgba(15, 15, 13, 0.70) 0%,
      transparent 35%
    );
}

/* ------------------------------------------------------------
   Hero Content (Text)
   ------------------------------------------------------------ */
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--nav-height) clamp(24px, 7vw, 100px) 0;
  max-width: 860px;
  /* Starts invisible — GSAP animates it in */
  will-change: opacity, transform;
}

/* "Oil Painting Artist" */
.hero-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

/* Hero name wrapper — now holds the logo mark */
.hero-name {
  margin-bottom: 36px;
  line-height: 1;
}

/* Logo mark in the hero — replaces the AHARSH text */
.hero-logo-mark {
  display: block;
  width: clamp(180px, 36vw, 480px);
  height: auto;
  will-change: opacity, transform;
}

/* Tagline */
.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 48px;
  max-width: 360px;
}

/* CTA Button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid rgba(240, 235, 224, 0.28);
  padding: 16px 34px;
  transition:
    background     0.35s var(--ease-smooth),
    border-color   0.35s var(--ease-smooth),
    color          0.35s var(--ease-smooth);
}

.hero-cta::after {
  content: '→';
  display: inline-block;
  transition: transform 0.35s var(--ease-smooth);
}

.hero-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.hero-cta:hover::after {
  transform: translateX(5px);
}

/* ------------------------------------------------------------
   Scroll Indicator (bottom center)
   ------------------------------------------------------------ */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.scroll-text {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Animated bar — a line that travels downward on loop */
.scroll-bar {
  width: 1px;
  height: 56px;
  background: rgba(240, 235, 224, 0.12);
  position: relative;
  overflow: hidden;
}

.scroll-bar::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { top: -100%; }
  45%  { top: 0%; }
  100% { top: 110%; }
}

/* ------------------------------------------------------------
   Responsive Adjustments
   ------------------------------------------------------------ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-overlay {
    background:
      linear-gradient(
        to right,
        rgba(15, 15, 13, 0.88) 0%,
        rgba(15, 15, 13, 0.55) 60%,
        rgba(15, 15, 13, 0.20) 100%
      ),
      linear-gradient(to top, rgba(15,15,13,0.6) 0%, transparent 35%);
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* On mobile, full overlay — image is decorative */
  .hero-overlay {
    background: rgba(15, 15, 13, 0.72);
  }

  .hero-content {
    padding-left: clamp(24px, 6vw, 40px);
    padding-right: clamp(24px, 6vw, 40px);
  }

  .hero-tagline {
    max-width: 100%;
  }

  .hero-scroll {
    bottom: 24px;
  }
}

/* Small mobile */
@media (max-width: 400px) {
  .hero-cta {
    padding: 14px 24px;
  }
}
