/* ============================================================
   HOME PAGE — Specific styles
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(37,99,235,0.18) 0%,
    rgba(124,58,237,0.10) 40%,
    transparent 70%);
  pointer-events: none;
  filter: blur(1px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-content { display: flex; flex-direction: column; gap: 1.25rem; }

.hero-badge { margin-bottom: -0.25rem; }

.hero-name {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 30%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-typewriter {
  font-size: 1.1rem;
  color: var(--accent-neon);
  font-family: 'Share Tech Mono', monospace;
  min-height: 1.6em;
}

.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-family: 'Share Tech Mono', monospace;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
  color: var(--text-muted);
  max-width: 480px;
  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

/* ---------- TERMINAL ---------- */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-terminal {
  width: 100%;
  max-width: 420px;
  background: #070a0f;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border-glow), var(--shadow);
  font-size: 0.85rem;
  [data-theme="light"] & {
    background: #1a1f2e;
  }
}

[data-theme="light"] .hero-terminal { background: #1a1f2e; }

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28ca41; }
.terminal-title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: #475569;
}
.terminal-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: #94a3b8;
  line-height: 1.5;
}
.t-line { display: flex; gap: 0.25rem; }
.t-prompt { color: #2563eb; }
.t-cmd    { color: #e2e8f0; }
.t-out    { padding-left: 1.25rem; color: #64748b; }
.t-accent { color: #38bdf8 !important; }
.t-blink  { margin-top: 0.25rem; }
.cursor-inline {
  animation: blink 1s step-end infinite;
  color: #2563eb;
}

/* ---------- SCROLL HINT ---------- */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 1;
}
.scroll-arrow {
  width: 18px; height: 18px;
  border-right: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50%       { transform: rotate(45deg) translateY(4px); opacity: 0.4; }
}

/* ---------- ABOUT GRID ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}
.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ---------- SKILLS ---------- */
.skills-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.skill-group-label {
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- CTA BOX ---------- */
.cta-box {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  overflow: hidden;
  background: var(--bg-card);
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.12), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 3rem;
    padding-bottom: 3rem;
    gap: 3rem;
    text-align: center;
  }
  .hero-content { align-items: center; }
  .hero-desc { text-align: left; }
  .hero-visual { justify-content: center; }
  .hero-terminal { max-width: 100%; }
  .hero-scroll-hint { display: none; }
}
