/* ============================================
   Shiva Gautam — Portfolio Landing
   Nepal flag inspired: Crimson #DC143C, Blue #003893
   ============================================ */

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

:root {
  --nepal-red: #DC143C;
  --nepal-blue: #003893;
  --nepal-red-glow: rgba(220, 20, 60, 0.35);
  --nepal-blue-glow: rgba(0, 56, 147, 0.35);
  --bg: #06080d;
  --text: #e2e8f0;
  --text-muted: #7d8a9e;
  --border: rgba(255, 255, 255, 0.07);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

/* ============================================
   Reveal Animations
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* ============================================
   Hero — Full Viewport
   ============================================ */

#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background image */
.hero-bg {
  position: absolute;
  inset: -5% -5% -5% 0;
  background: url('images/phewa-lake.webp') center top / cover no-repeat;
  z-index: -2;
  will-change: transform;
  filter: brightness(0.85) saturate(1.1);
}

/* Overlay: dark gradient + subtle colored vignette */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(6, 8, 13, 0.2) 0%,
      rgba(6, 8, 13, 0.35) 35%,
      rgba(6, 8, 13, 0.7) 70%,
      var(--bg) 100%
    ),
    radial-gradient(ellipse at 20% 30%, var(--nepal-red-glow) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 60%, var(--nepal-blue-glow) 0%, transparent 55%);
}

/* Content */
.hero-content {
  text-align: center;
  padding: 0 24px;
  max-width: 760px;
  z-index: 1;
}

/* Greeting */
.hero-greeting {
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

/* === Big Name — Clean White + Blue Underline === */
.hero-name {
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 40px;
  letter-spacing: -2px;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

/* Animated blue underline */
.hero-name::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--nepal-blue), #4a8eff);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
              left 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.hero-name.revealed::after {
  width: 100%;
  left: 0;
}

/* Nepali name */
.hero-name-np {
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: -28px;
  margin-bottom: 40px;
}

/* ============================================
   Terminal
   ============================================ */

.hero-terminal {
  background: rgba(10, 14, 22, 0.75);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  margin-bottom: 36px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 2;
}

.terminal-line {
  display: flex;
  gap: 10px;
}

.prompt {
  color: var(--nepal-red);
  font-weight: 500;
}

.command {
  color: var(--text);
}

.terminal-output {
  color: var(--nepal-blue);
  padding-left: 22px;
  color: #6fadff;
}

.cursor {
  color: var(--nepal-red);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ============================================
   Social Links
   ============================================ */

.hero-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.hero-socials a {
  color: var(--text-muted);
  display: flex;
  padding: 10px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.hero-socials a:hover {
  color: #fff;
  border-color: var(--nepal-red);
  background: rgba(220, 20, 60, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px var(--nepal-red-glow);
}

/* ============================================
   Footer (inside hero)
   ============================================ */

.hero-footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
}

.hero-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .hero-name {
    letter-spacing: -1px;
  }

  .terminal-body {
    font-size: 0.78rem;
    padding: 16px;
  }

  .hero-terminal {
    margin-left: -8px;
    margin-right: -8px;
  }
}

@media (max-width: 480px) {
  .hero-greeting {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  .hero-name {
    margin-bottom: 28px;
  }
}
