/* ============================================================
   HOME PAGE — Terminal, Mindset, Hero, Stats, Skills
   ============================================================ */

/* ── Developer Terminal ── */
#dev-terminal {
  padding: 96px 0 100px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.term-intro { text-align: center; margin-bottom: 2.75rem; }

.term-intro-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.5rem;
  line-height: 1.2;
}

.term-intro-sub { font-size: 0.9rem; color: var(--text-dim); margin: 0; }

.term-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 0.875rem;
  line-height: 1.75;
  transition: box-shadow var(--dur-slow) cubic-bezier(0.4, 0, 0.2, 1);
}

.term-wrap:focus-within {
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(7, 160, 246, 0.18);
}

.term-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
}

.term-dots { display: flex; gap: 6px; flex-shrink: 0; }

.term-dot { width: 12px; height: 12px; border-radius: 50%; opacity: 0.85; }
.term-dot--r { background: #ff5f57; }
.term-dot--y { background: #ffbd2e; }
.term-dot--g { background: #28c840; }

.term-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: #484f58;
  letter-spacing: 0.04em;
}

.term-hint { font-size: 0.68rem; color: #30363d; flex-shrink: 0; }

.term-hint kbd {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  padding: 0.08em 0.4em;
  font-family: inherit;
  font-size: 0.66rem;
  color: #6e7681;
}

.term-body {
  padding: 1.1rem 1.4rem 1rem;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  cursor: text;
  scroll-behavior: smooth;
}

.term-body::-webkit-scrollbar       { width: 3px; }
.term-body::-webkit-scrollbar-track { background: transparent; }
.term-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 2px; }

.term-welcome { color: #6e7681; margin: 0 0 0.5rem; font-size: 0.875rem; }

.t-accent { color: #07a0f6; }
.t-green  { color: #3fb950; }
.t-dim    { color: #6e7681; }
.t-bold   { color: #e6edf3; font-weight: 600; }
.t-num    { color: #79c0ff; }
.t-error  { color: #f85149; }
.t-label  { color: #6e7681; display: inline-block; min-width: 9ch; }

#termOutput { margin-bottom: 0.25rem; }

.term-entry { margin-bottom: 1rem; }

.term-cmd-echo {
  color: #6e7681;
  margin: 0 0 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.term-cmd-echo .t-echo-prompt { color: #07a0f6; user-select: none; }

.term-result { color: #c9d1d9; }
.term-result p { margin: 0 0 0.1rem; white-space: pre-wrap; word-break: break-word; }
.term-result a { color: #07a0f6; text-decoration: none; }
.term-result a:hover { text-decoration: underline; }

.term-input-row { display: flex; align-items: center; gap: 0.55rem; }

.term-prompt {
  color: #6e7681;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e6edf3;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.75;
  caret-color: #07a0f6;
  padding: 0;
  min-width: 0;
}

.term-input::selection { background: rgba(7, 160, 246, 0.25); }

@media (max-width: 575.98px) {
  #dev-terminal { padding: 64px 0 72px; }
  .term-body    { padding: 0.9rem 1rem 0.85rem; font-size: 0.82rem; }
  .term-input   { font-size: 0.82rem; }
  .term-prompt  { font-size: 0.78rem; }
  .term-wrap    { font-size: 0.82rem; }
}

/* ── How I Think ── */
#how-i-think {
  padding: 96px 0 104px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.mindset-header { margin-bottom: 3.5rem; }
.mindset-desc   { padding-top: 0.25rem; margin-bottom: 0; }

.mindset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.mindset-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem 1.6rem 1.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              background-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-slow) var(--ease-spring),
              box-shadow var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.mindset-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mindset-card:hover {
  border-color: rgba(7, 160, 246, 0.28);
  background: var(--card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.mindset-card:hover::before { transform: scaleX(1); }

.mindset-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: var(--accent-dim);
  border: 1px solid rgba(7, 160, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  transition: background-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              border-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-slow) var(--ease-spring);
}

.mindset-card-icon i {
  font-size: 0.95rem;
  color: var(--accent);
  transition: transform var(--dur-slow) var(--ease-spring);
}

.mindset-card:hover .mindset-card-icon {
  background: rgba(7, 160, 246, 0.14);
  border-color: rgba(7, 160, 246, 0.3);
  transform: scale(1.08);
}

.mindset-card:hover .mindset-card-icon i { transform: scale(1.12); }

.mindset-card-num {
  position: absolute;
  top: 1.5rem;
  right: 1.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  opacity: 0.5;
  transition: opacity var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1);
}

.mindset-card:hover .mindset-card-num { opacity: 0.85; color: var(--accent); }

.mindset-card-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
  line-height: 1.35;
}

.mindset-card-desc { font-size: 0.855rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

@media (max-width: 991.98px) {
  .mindset-grid    { grid-template-columns: repeat(2, 1fr); }
  #how-i-think     { padding: 72px 0 80px; }
  .mindset-header  { margin-bottom: 2.75rem; }
}

@media (max-width: 575.98px) {
  .mindset-grid { grid-template-columns: 1fr; gap: 1rem; }
  #how-i-think  { padding: 60px 0 68px; }
  .mindset-card { padding: 1.5rem 1.35rem 1.4rem; }
  .mindset-desc { padding-top: 0; margin-top: 0.75rem; }
}

/* ── Home Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

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

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

[data-theme="dark"] .hero-bg::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 78% 50%, rgba(7, 160, 246, 0.05) 0%, transparent 65%),
    radial-gradient(ellipse 35% 45% at 10% 65%, rgba(81, 45, 168, 0.04) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 80px 0 96px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-eyebrow-sep {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--border-lit);
  flex-shrink: 0;
}

.hero-name {
  font-size: clamp(3rem, 7.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: 0.75rem;
  animation: fadeInUp 0.65s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-name .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-role .typed-text { color: var(--text); font-weight: 600; }

.hero-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  border-radius: 1px;
  animation: blink 1s step-end infinite;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 460px;
  margin-bottom: 2.25rem;
  animation: fadeInUp 0.6s 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s 0.30s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-socials {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-photo-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 2rem;
}

.hero-photo-frame {
  position: relative;
  display: inline-block;
  animation: fadeInUp 0.7s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-photo-frame::before {
  content: '';
  position: absolute;
  top: 24px;
  right: -20px;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(7, 160, 246, 0.12) 0%, rgba(81, 45, 168, 0.10) 100%);
  z-index: 0;
}

.hero-photo-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border-lit);
  box-shadow: var(--shadow-lg);
  display: block;
  position: relative;
  z-index: 1;
}

.hero-photo-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(7, 160, 246, 0.14);
  z-index: 0;
  animation: float 7s ease-in-out infinite;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1;
}

.scroll-mouse {
  width: 18px;
  height: 28px;
  border: 1.5px solid var(--border-lit);
  border-radius: 9px;
  position: relative;
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 5px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDot 1.8s ease infinite;
}

/* ── Stats ── */
#stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}

.stats-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 0.5rem 2rem;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-number .accent { color: var(--accent); }

.stat-label {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Skills Preview ── */
#skills-preview { padding: 96px 0; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.75rem;
  margin-top: 3rem;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transition: border-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              background-color var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1),
              transform var(--dur-slow) var(--ease-spring),
              box-shadow var(--dur-base) cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.skill-card:hover {
  border-color: rgba(7, 160, 246, 0.35);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-card i { font-size: 1.6rem; color: var(--accent); transition: transform 0.25s var(--ease-spring); }
.skill-card:hover i { transform: scale(1.18); }

.skill-card-name { font-size: 0.76rem; font-weight: 600; color: var(--text-muted); text-align: center; }

/* ── Skills section helpers ── */
.skills-description  { padding-top: 0.5rem; }
.skills-more-cta     { margin-top: 3rem; }

/* ── Home Responsive ── */
@media (max-width: 991px) {
  .hero-inner       { padding: 3rem 0 4rem; }
  .hero-photo-img   { width: 240px; height: 240px; }
  .hero-description { max-width: 100%; }
  .hero-photo-col   { margin-top: 3rem; justify-content: center; padding-right: 0; }
}

@media (max-width: 575px) {
  #hero             { min-height: auto; padding-bottom: 3rem; }
  .hero-photo-img   { width: 190px; height: 190px; }
  .stat-item        { padding: 0.5rem 1rem; }
  .stat-number      { font-size: 1.8rem; }
  .skills-grid      { grid-template-columns: repeat(3, 1fr); }
  .scroll-cue       { display: none; }
  .navbar .container,
  .hero-description,
  .hero-cta         { max-width: 100%; padding-left: 1rem; padding-right: 1rem; }
  .hero-name,
  .footer-tagline   { text-align: center; }
  .footer-tagline   { max-width: 100%; }
  .hero-role,
  .hero-socials     { width: 100%; height: 30px; display: flex; justify-content: center; }
  .hide-mobile-sm   { display: none; }
}
