/* ===== HOME / HERO ===== */

.home {
  display: flex;
  align-items: center;
  min-height: 100vh;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
  background: var(--primary-bg-color); /* fallback while canvas loads */
}

/* Canvas fills the entire hero */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.home-content {
  position: relative;
  z-index: 1;
  padding: 2rem 2rem 5rem; /* bottom padding for scroll indicator */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 2rem;
  pointer-events: none;
}

/* Re-enable pointer events for interactive children */
.home-content a,
.home-content button,
.home-content .hero-profile-img-wrap {
  pointer-events: auto;
}

.home-right-content {
  flex: 1;
  min-width: 280px;
}

/* ── Greeting & name ── */
.home .home-content .text-1 {
  font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.home .home-content .text-2 {
  font-size: 3.2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-color);
  line-height: 1.1;
  letter-spacing: -2px;
}

.home .home-content .text-2 span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home .home-content .text-3 {
  font-size: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.home .home-content .text-3 span { color: var(--main-color); font-weight: 700; }

/* ── Availability pill ── */
.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--secondry-bg-color);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  border-radius: 3rem;
  padding: 0.32rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
  width: fit-content;
}

.hero-availability .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Mini stats strip ── */
.hero-mini-stats {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-mini-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding-right: 1.25rem;
}

.hero-mini-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 1px;
  background: var(--border-color);
}

.hero-mini-stat .num {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-heading);
  line-height: 1;
}

.hero-mini-stat .lbl {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
  font-weight: 600;
}

/* ── CTA buttons ── */
.hero-cta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  pointer-events: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: #0891b2;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.7rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  transition: all 0.22s ease;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: var(--secondry-bg-color);
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.7rem 1.5rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--border-color);
  backdrop-filter: blur(4px);
  transition: all 0.22s ease;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--nav-hover-color);
  transform: translateY(-2px);
}

/* Specificity overrides */
.home .home-content .btn-primary,
.home .home-content .btn-secondary {
  width: auto !important;
  height: auto !important;
  font-size: 0.88rem !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 0.75rem !important;
  margin: 0 !important;
  display: inline-flex !important;
  gap: 0.5rem !important;
}

.home .home-content .btn-primary {
  background: var(--main-color) !important;
  color: #fff !important;
  border: none !important;
}
.home .home-content .btn-primary:hover {
  opacity: 0.9 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4) !important;
}
.home .home-content .btn-secondary {
  background: var(--secondry-bg-color) !important;
  color: var(--text-color) !important;
  border: 1.5px solid var(--border-color) !important;
}
.home .home-content .btn-secondary:hover {
  background: var(--nav-hover-color) !important;
  transform: translateY(-2px) !important;
  box-shadow: none !important;
}

/* ── Social icons ── */
.hero-social-row {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
  pointer-events: auto;
}

.hero-social-row a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.55rem !important;
  font-size: 1rem !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--secondry-bg-color) !important;
  border: 1.5px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease !important;
}

.hero-social-row a:hover {
  background: var(--main-color) !important;
  border-color: var(--main-color) !important;
  color: #fff !important;
  transform: translateY(-2px) scale(1) !important;
}

/* ── Profile card (right side) ── */
.home-left-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-profile-img-wrap {
  position: relative;
  width: 220px;
  height: 220px;
}

.hero-profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--main-color);
  box-shadow: 0 0 0 6px var(--main-color-light), 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: glowPulse 4s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}

/* Floating tech badges */
.tech-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2rem;
  padding: 0.28rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.tech-badge img { width: 14px; height: 14px; object-fit: contain; }

.tech-badge:nth-child(2) { top: -10px; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.tech-badge:nth-child(3) { top: 26px;  right: -30px; animation-delay: 0.5s; }
.tech-badge:nth-child(4) { bottom: 26px; right: -30px; animation-delay: 1s; }
.tech-badge:nth-child(5) { bottom: -10px; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }
.tech-badge:nth-child(6) { top: 26px;   left: -30px; animation-delay: 2s; }
.tech-badge:nth-child(7) { bottom: 26px; left: -30px; animation-delay: 2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(var(--tx, 0)); }
  50%       { transform: translateY(-5px) translateX(var(--tx, 0)); }
}
.tech-badge:nth-child(2), .tech-badge:nth-child(5) { --tx: -50%; }

/* ═══════════════════════════════
   MOBILE HERO — complete rewrite
   ═══════════════════════════════ */
@media (max-width: 900px) {
  .home {
    align-items: flex-start;
    padding-top: 3.25rem; /* offset for mobile top bar */
    min-height: 100vh;
  }

  .home-content {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1.75rem 1.25rem 5rem;
    gap: 1.5rem;
  }

  /* Profile image: above text on mobile */
  .home-left-content {
    order: -1;
    width: 100%;
    justify-content: center;
    padding-top: 0.5rem;
  }

  .hero-profile-img-wrap {
    width: 130px;
    height: 130px;
  }

  /* Hide floating tech badges on mobile (too cramped) */
  .tech-badge { display: none; }

  .home .home-content .text-2 {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }

  .home .home-content .text-1 { font-size: 0.85rem; }
  .home .home-content .text-3 { font-size: 1rem; }

  .hero-mini-stats { gap: 0.9rem; margin-top: 1rem; }

  .hero-mini-stat .num { font-size: 1.25rem; }
  .hero-mini-stat .lbl { font-size: 0.6rem; }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary,
  .home .home-content .btn-primary,
  .home .home-content .btn-secondary {
    justify-content: center !important;
    width: 100% !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.92rem !important;
  }
}

@media (max-width: 480px) {
  .home .home-content .text-2 { font-size: 1.9rem; letter-spacing: -1px; }
  .hero-mini-stats { gap: 0.7rem; }
}

/* ── Dark mode hero orb color overrides ── */
.dark-mode .hero-orb-1 { background: #08e8de; }
.dark-mode .hero-orb-2 { background: #3b82f6; }

