/* ============================================================
   HOME.CSS — Landing Page Styles
   ============================================================ */

/* ── Hero Section ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: rgba(0, 255, 159, 0.06);
  border: 1px solid rgba(0, 255, 159, 0.2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent2);
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 159, 0.6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 255, 159, 0);
  }
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text3);
  letter-spacing: 1px;
}
.hero-greeting {
  margin-bottom: 0.5rem;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
.name-first {
  color: var(--white);
}
.name-last {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  text-stroke: 1.5px var(--accent);
}

.hero-role {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.role-prefix {
  color: var(--text3);
}
.role-typed {
  color: var(--accent);
}
.role-cursor {
  color: var(--accent);
  animation: blink 0.8s step-end infinite;
  font-weight: 700;
}

.hero-desc {
  color: var(--text2);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 440px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-stack {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.stack-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text3);
  letter-spacing: 1px;
}
.stack-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* ── Terminal Card ───────────────────────────────────────────── */
.hero-visual {
  position: relative;
}
.terminal-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  overflow: hidden;
  box-shadow: var(--shadow2), var(--glow2);
  position: relative;
  z-index: 1;
}
.terminal-bar {
  background: var(--bg3);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red {
  background: #ff5f57;
}
.dot.yellow {
  background: #febc2e;
}
.dot.green {
  background: #28c840;
}
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text3);
  margin-left: 0.5rem;
}
.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 2;
  min-height: 200px;
}
.t-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.t-prompt {
  color: var(--accent2);
}
.t-cmd {
  color: var(--white);
}
.t-comment {
  color: var(--text3);
}
.t-key {
  color: var(--accent);
}
.t-val {
  color: var(--accent2);
}
.t-num {
  color: var(--warning);
}
.t-str {
  color: var(--accent3);
}
.t-success {
  color: var(--accent2);
}
.t-blink {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}
.t-cursor-line {
  opacity: 0.8;
}

/* ── Metric Cards ────────────────────────────────────────────── */
.metric-card {
  position: absolute;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
.metric-1 {
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}
.metric-2 {
  bottom: 20px;
  left: -30px;
  animation-delay: 1.5s;
}
.metric-3 {
  bottom: 80px;
  right: -25px;
  animation-delay: 0.75s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.metric-icon {
  font-size: 1.3rem;
}
.metric-num {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.metric-label {
  font-size: 0.7rem;
  color: var(--text2);
  font-family: var(--font-mono);
}

/* ── Scroll Hint ─────────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
}
.scroll-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text3);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%,
  100% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50% {
    transform: scaleY(0.5);
    transform-origin: top;
  }
}

/* ── Stats Strip ─────────────────────────────────────────────── */
.stats-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem clamp(1.5rem, 6vw, 5rem);
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 140px;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  color: var(--accent);
  display: inline;
  font-weight: 700;
}
.stat-suf {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent2);
}
.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text2);
  margin-top: 0.25rem;
  letter-spacing: 0.5px;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border2);
  flex-shrink: 0;
}

/* ── Featured Projects Grid ──────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.featured-card {
  overflow: hidden;
}
.fc-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.fc-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fc-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 15, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.featured-card:hover .fc-overlay {
  opacity: 1;
}
.fc-body {
  padding: 1.5rem;
}
.fc-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.fc-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.fc-desc {
  color: var(--text2);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.fc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Expertise Grid ──────────────────────────────────────────── */
.expertise-strip {
  background: linear-gradient(
    180deg,
    transparent,
    var(--bg2) 30%,
    var(--bg2) 70%,
    transparent
  );
}
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.expertise-card {
  padding: 2rem 1.5rem;
}
.exp-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.expertise-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.expertise-card p {
  color: var(--text2);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse,
    rgba(0, 212, 255, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-content .section-title {
  margin-bottom: 1rem;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-actions,
  .hero-stack {
    justify-content: center;
  }
  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }
  .metric-1 {
    top: -15px;
    right: 0;
  }
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .stats-inner {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .stat-divider {
    display: none;
  }
}
@media (max-width: 640px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .hero-name {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
}

/* ── Now Widget in Hero ── */
.now-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  max-width: 100%;
  text-align: left;
}
.now-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent2);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
.now-label {
  font-family: var(--font-mono);
  color: var(--accent2);
  font-weight: bold;
  flex-shrink: 0;
}
.now-text {
  color: var(--text2);
}
